From 983b307f2ef2d8ac32f9540964798fd79ea767e0 Mon Sep 17 00:00:00 2001 From: Pat Patterson Date: Mon, 16 Sep 2024 14:12:56 -0700 Subject: [PATCH] Add `-l` as an alias for `--long` argument --- b2/_internal/console_tool.py | 4 ++-- changelog.d/+long_alias.added.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/+long_alias.added.md diff --git a/b2/_internal/console_tool.py b/b2/_internal/console_tool.py index 662443d2..2e2abffa 100644 --- a/b2/_internal/console_tool.py +++ b/b2/_internal/console_tool.py @@ -2299,7 +2299,7 @@ class KeyListBase(Command): @classmethod def _setup_parser(cls, parser): - parser.add_argument('--long', action='store_true') + parser.add_argument('-l', '--long', action='store_true') super()._setup_parser(parser) def __init__(self, console_tool): @@ -2491,7 +2491,7 @@ class BaseLs(AbstractLsCommand, metaclass=ABCMeta): @classmethod def _setup_parser(cls, parser): - parser.add_argument('--long', action='store_true') + parser.add_argument('-l', '--long', action='store_true') parser.add_argument('--json', action='store_true') parser.add_argument('--replication', action='store_true') super()._setup_parser(parser) diff --git a/changelog.d/+long_alias.added.md b/changelog.d/+long_alias.added.md new file mode 100644 index 00000000..572c0b92 --- /dev/null +++ b/changelog.d/+long_alias.added.md @@ -0,0 +1 @@ +Add `-l` as an alias for `--long` argument.