projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c032af
)
Added --commands option to be to help with bash completion.
author
W. Trevor King
<wking@drexel.edu>
Thu, 27 Nov 2008 12:35:40 +0000
(07:35 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 27 Nov 2008 12:35:40 +0000
(07:35 -0500)
A'la ditz
http://gitorious.org/projects/ditz
See also this good intro to bash completion
http://www.debian-administration.org/articles/317
be
patch
|
blob
|
history
diff --git
a/be
b/be
index 6be236ba1cd2752dcc6623e3da0f2f6969fc3b5e..2e038a5b6b038346215d5feb285215c17c4a3ec4 100755
(executable)
--- 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: