diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-27 07:35:40 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-27 07:35:40 -0500 |
commit | 3c70ddc0a08c70435d42cafa4f731af2f86925e4 (patch) | |
tree | d000188c412c54cd97723b2d02dad319a8752f62 /be | |
parent | 0c032afab8b5a22428d6148bd611cfe171934ae2 (diff) | |
download | bugseverywhere-3c70ddc0a08c70435d42cafa4f731af2f86925e4.tar.gz |
Added --commands option to be to help with bash completion.
A'la ditz
http://gitorious.org/projects/ditz
See also this good intro to bash completion
http://www.debian-administration.org/articles/317
Diffstat (limited to 'be')
-rwxr-xr-x | be | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,9 @@ __doc__ == cmdutil.help() if len(sys.argv) == 1 or sys.argv[1] in ('--help', '-h'): print cmdutil.help() +elif sys.argv[1] == '--commands': + for command, module in cmdutil.iter_commands(): + print command else: try: try: |