aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-27 07:35:40 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-27 07:35:40 -0500
commit3c70ddc0a08c70435d42cafa4f731af2f86925e4 (patch)
treed000188c412c54cd97723b2d02dad319a8752f62
parent0c032afab8b5a22428d6148bd611cfe171934ae2 (diff)
downloadbugseverywhere-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
-rwxr-xr-xbe3
1 files changed, 3 insertions, 0 deletions
diff --git a/be b/be
index 6be236b..2e038a5 100755
--- a/be
+++ b/be
@@ -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: