From 21c7200360f8c0c8eab2b768e1b5a8b8dd67f69c Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 11 Sep 2014 19:42:42 +0200 Subject: [PATCH] Reactivate paging of help pages. --- doc/changelog.txt | 1 + linkcheck/cmdline.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index a68642c2..ff5557ca 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -12,6 +12,7 @@ Changes: Fixes: - checking: Correct typos in the proxy handling code. Closes: GH bug #536 +- cmdline: Reactivate paging of help pages. 9.3 "Better Living Through Chemistry" (released 16.7.2014) diff --git a/linkcheck/cmdline.py b/linkcheck/cmdline.py index f1a7056d..7404fe84 100644 --- a/linkcheck/cmdline.py +++ b/linkcheck/cmdline.py @@ -27,7 +27,7 @@ from .director import console class LCArgumentParser(argparse.ArgumentParser): """Custom argument parser to format help text.""" - def print_help(self, file=None): + def print_help(self, file=sys.stdout): """Print a help message to stdout.""" msg = console.encode(self.format_help()) if fileutil.is_tty(file):