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.