[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global option and action sub-option

From: ewl+rdiffbackup
Subject: Re: global option and action sub-option
Date: Fri, 03 Mar 2023 18:42:14 +0100
User-agent: K-9 Mail for Android


I really don't understand what's complicated: in the past, you didn't know 
which option was to be combined with which, or exclusive to another, or the 
difference between action and it's options.

Now you call 'rdiff-backup --help' and you know which global options there are, 
and which actions there are. You call 'rdiff-backup ACTION --help' and you know 
which options this action has. How can it be easier? Everything is also 
documented as clearly as that in the man page. And there is a migration guide. 
The command line completion could be more helpful but it currently needs to 
support old and new CLI and that makes it messy.

But, it is open source, you can document it better and provide examples (did 
you know that we have an examples document?).

Hope this helps,

PS: and there will be no relaxing of the rules, Python argparse limitation.

On 3 March 2023 15:24:42 GMT+01:00, Jonathan Hutchins <hutchins@tarcanfel.org> 
>On 2023-03-03 03:34, tbsky wrote:
>> Hi:
>>    I want to rewrite my old rdiff-backup script to use new syntax.
>> however I found the parameter order is very important. so command like
>> "rdiff-backup remove increments --force --older-than 7B my-backup"
>> won't work since "--force" is a global option.
>The syntax and order of the commands are difficult, and there do not seem to 
>be clear examples anywhere.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]