From: Catalin Marinas Date: Wed, 6 Dec 2006 22:12:15 +0000 (+0000) Subject: Pipe the 'stg help ' output through the pager X-Git-Tag: v0.14.3~392 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/0d4cd7ce095244423ef506e05d26980ce2749463 Pipe the 'stg help ' output through the pager Signed-off-by: Catalin Marinas --- 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)