diff options
-rw-r--r-- | pgcli/main.py | 6 | ||||
-rw-r--r-- | tests/features/fixture_data/help_commands.txt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index e8715a85..b05cf88d 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -303,7 +303,7 @@ class PGCli(object): if not pattern: self.output_file = None message = 'File output disabled' - return [(None, None, None, message, '', True)] + return [(None, None, None, message, '', True, True)] filename = os.path.abspath(os.path.expanduser(pattern)) if not os.path.isfile(filename): try: @@ -311,10 +311,10 @@ class PGCli(object): except IOError as e: self.output_file = None message = str(e) + '\nFile output disabled' - return [(None, None, None, message, '', False)] + return [(None, None, None, message, '', False, True)] self.output_file = filename message = 'Writing to file "%s"' % self.output_file - return [(None, None, None, message, '', True)] + return [(None, None, None, message, '', True, True)] def initialize_logging(self): diff --git a/tests/features/fixture_data/help_commands.txt b/tests/features/fixture_data/help_commands.txt index f5d529ab..e0766617 100644 --- a/tests/features/fixture_data/help_commands.txt +++ b/tests/features/fixture_data/help_commands.txt @@ -51,7 +51,7 @@ Save a named query. \o [filename] Send all query results to file. \pager [command] -Set PAGER. Pring the query results via PAGER. +Set PAGER. Print the query results via PAGER. \pset [key] [value] A limited version of traditional \pset \refresh |