From 4696b9799c24e3e4d3019c4787765556d42d4f4a Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 4 Jul 2024 12:35:59 +0900 Subject: [PATCH] add some aliases for config sub command. --- mdrsclient/commands/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdrsclient/commands/config.py b/mdrsclient/commands/config.py index e97fd5e..d5fd319 100644 --- a/mdrsclient/commands/config.py +++ b/mdrsclient/commands/config.py @@ -25,11 +25,11 @@ class ConfigCommand(BaseCommand): update_parser.add_argument("url", help="API entrypoint url of remote host") update_parser.set_defaults(func=cls.func_update) # config list - list_parser = config_parsers.add_parser("list", help="list all the remote hosts") + list_parser = config_parsers.add_parser("list", help="list all the remote hosts", aliases=["ls"]) list_parser.add_argument("-l", "--long", help="show the api url", action="store_true") list_parser.set_defaults(func=cls.func_list) # config delete - delete_parser = config_parsers.add_parser("delete", help="delete an existing remote host") + delete_parser = config_parsers.add_parser("delete", help="delete an existing remote host", aliases=["remove"]) delete_parser.add_argument("remote", help="label of remote host") delete_parser.set_defaults(func=cls.func_delete)