X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/9e3f506f0d0e1b0c09d1e9d7051af23bfede7834..0d4cd7ce095244423ef506e05d26980ce2749463:/stgit/main.py diff --git a/stgit/main.py b/stgit/main.py index c2af585..800513b 100644 --- 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)