~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pipe the 'stg help <command>' output through the pager
[stgit]
/
stgit
/
main.py
diff --git
a/stgit/main.py
b/stgit/main.py
index
c2af585
..
800513b
100644
(file)
--- a/
stgit/main.py
+++ b/
stgit/main.py
@@
-190,7
+190,8
@@
def main():
command = commands[cmd]
parser = OptionParser(usage = command.usage,
option_list = command.options)
- parser.print_help()
+ from pydoc import pager
+ pager(parser.format_help())
else:
print_help()
sys.exit(0)