From 0d4cd7ce095244423ef506e05d26980ce2749463 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Wed, 6 Dec 2006 22:12:15 +0000 Subject: [PATCH] Pipe the 'stg help ' output through the pager Signed-off-by: Catalin Marinas --- stgit/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.11.0