Re: global option and action sub-option
EricZolf <[email protected]> Sat, 04 Mar 2023 22:58:22 +0000
| Newsgroups | gmane.comp.sysutils.backup.rdiff-backup.general |
|---|---|
| Message-ID | <[email protected]> |
Not sure it helps but did you know that you can put the options in a file and use it with something like `rdiff-backup @myfile`? KR, Eric On March 4, 2023 3:43:01 PM UTC, tbsky <[email protected]> wrote: >[email protected] >> 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, >> Eric >> >> PS: and there will be no relaxing of the rules, Python argparse limitation. > > Yes I think the new syntax is quite clear and structured. it is user friendly but sometimes it's not easy to use in script. >for example when I backup a server I need to collect parameters about ssh-ip,ssh-port,ssh-compression,directory-exclusion from config files. >now I need to arrange the location of the parameters, seperate them for generic option and action sub-option. but as you said, we should live with it since it is Python argparse limitation. > >Regards, >tbsky >