#20 Provide an optional "--help-advanced" option.

closed
5
2006-06-13
2005-08-29
No

This would give users a view of standard/common options
when using
--help, providing a default smallish list of common
options. Then
less-common/advanced options would only be shown when
"--help-advanced" is specified. If any options were
added as
ADVANCED_HELP types, then the "--help-advanced" option
would show up
in the "--help" list.

Compare this "--help-advanced" option idea to Sun
java's "-X" option
(print help on non-standard options).

...
parser.add_option('--xxx', help='do xxx...', ...)
parser.add_option('--complex',
help='do something real tricky',
help_type=ADVANCED_HELP, ...)

$ foo --help
...
Options:
--help ...
--help-advanced show advanced options
--xxx do xxx
...

$ foo --help-hidden
...
Options:
--help ...
--help-advanced show advanced options
--xxx do xxx
--complex do something real tricky
...

Discussion

  • Greg Ward

    Greg Ward - 2006-06-13

    Logged In: YES
    user_id=14422

    No. This is what option groups are for.

     
  • Greg Ward

    Greg Ward - 2006-06-13
    • status: open --> closed
     

Log in to post a comment.