Add completer for database option of trytond-console

This commit is contained in:
Cédric Krier
2023-06-19 15:36:58 +02:00
parent e16444665f
commit df86c766ac
+4 -2
View File
@@ -142,8 +142,10 @@ def get_parser_admin():
def get_parser_console():
parser = get_base_parser()
parser.add_argument("-d", "--database", dest="database_name",
required=True, metavar='DATABASE', help="specify the database name")
parser.add_argument(
"-d", "--database", dest="database_name",
required=True, metavar='DATABASE',
help="specify the database name").completer = database_completer
parser.add_argument("--histsize", dest="histsize", type=int, default=500,
help="The number of commands to remember in the command history")
parser.add_argument("--readonly", dest="readonly", action='store_true',