alex-rudakov / sphinx-argparse

Sphinx extension that automatically document argparse commands and options
MIT License
49 stars 40 forks source link

Add a :nodefaultconst: directive #41

Closed dpryan79 closed 8 years ago

dpryan79 commented 8 years ago

At least in our usage, it'd be really nice to suppress the "default" value when action='store_true' (or store_false or store_const) are used but to keep displaying it in all other cases. This is mostly because people never seem to send us emails saying they're confused by --foo=42, but do if they see --foo=False, since then they wonder whether they actually need to type --foo=False if they want the --foo option or not. Adding a :nodefaultconst: directive would make that clearer.