[pve-devel] [PATCH docs] qm: fix hookscript example

Aaron Lauterer a.lauterer at proxmox.com
Mon Feb 1 11:53:24 CET 2021



On 2/1/21 11:47 AM, Thomas Lamprecht wrote:
> 
> but this is a style fix only, or? As a single minus always works for options
> in CLIHandler based executables (we have no short-opts there).

yes it is basically a style fix. It works with one dash. What does not work with one dash though (tested quickly) is the auto completion of the parameter.

> 
> On 01.02.21 11:06, Aaron Lauterer wrote:
>> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
>> ---
>>   qm.adoc | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/qm.adoc b/qm.adoc
>> index 333b2e6..e0cce2b 100644
>> --- a/qm.adoc
>> +++ b/qm.adoc
>> @@ -1333,7 +1333,7 @@ Hookscripts
>>   
>>   You can add a hook script to VMs with the config property `hookscript`.
>>   
>> - qm set 100 -hookscript local:snippets/hookscript.pl
>> + qm set 100 --hookscript local:snippets/hookscript.pl
>>   
>>   It will be called during various phases of the guests lifetime.
>>   For an example and documentation see the example script under
>>
> 





More information about the pve-devel mailing list