From f655208654e10e49ff9ffcd61c5805d71015c1b8 Mon Sep 17 00:00:00 2001 From: fraoustin Date: Wed, 3 Jan 2018 21:25:03 +0100 Subject: [PATCH] change command t by T --- pgcli/main.py | 2 +- tests/features/fixture_data/help.txt | 2 +- tests/features/fixture_data/help_commands.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pgcli/main.py b/pgcli/main.py index 5035fec3..735a704d 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -212,7 +212,7 @@ class PGCli(object): 'Send all query results to file.') self.pgspecial.register(self.info_connection, '\\conninfo', '\\conninfo', 'Get connection details') - self.pgspecial.register(self.change_table_format, '\\t', '\\t [format]', + self.pgspecial.register(self.change_table_format, '\\T', '\\T [format]', 'Change the table format used to output results') def change_table_format(self, pattern, **_): diff --git a/tests/features/fixture_data/help.txt b/tests/features/fixture_data/help.txt index cec7a2af..bebb9766 100644 --- a/tests/features/fixture_data/help.txt +++ b/tests/features/fixture_data/help.txt @@ -3,6 +3,7 @@ |--------------------------+------------------------------------------------| | \# | Refresh auto-completions. | | \? | Show Help. | +| \T [format] | Change the table format used to output results | | \c[onnect] database_name | Change to a new database. | | \d [pattern] | List or describe tables, views and sequences. | | \dT[S+] [pattern] | List data types | @@ -19,7 +20,6 @@ | \nd [name [query]] | Delete a named query. | | \ns name query | Save a named query. | | \refresh | Refresh auto-completions. | -| \t [format] | Change the table format used to output results | | \timing | Toggle timing of commands. | | \x | Toggle expanded output. | +--------------------------+------------------------------------------------+ diff --git a/tests/features/fixture_data/help_commands.txt b/tests/features/fixture_data/help_commands.txt index fa299128..f5d529ab 100644 --- a/tests/features/fixture_data/help_commands.txt +++ b/tests/features/fixture_data/help_commands.txt @@ -4,6 +4,8 @@ Description Refresh auto-completions. \? Show Commands. +\T [format] +Change the table format used to output results \c[onnect] database_name Change to a new database. \copy [tablename] to/from [filename] @@ -56,8 +58,6 @@ A limited version of traditional \pset Refresh auto-completions. \sf[+] FUNCNAME Show a function's definition. -\t [format] -Change the table format used to output results \timing Toggle timing of commands. \x