Skip to content

Commit

Permalink
Merge pull request Backblaze#1044 from metadaddy/add-long-alias
Browse files Browse the repository at this point in the history
Add `-l` as an alias for `--long` argument
  • Loading branch information
ppolewicz authored Nov 13, 2024
2 parents b7c802d + 983b307 commit b489943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions b2/_internal/console_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,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):
Expand Down Expand Up @@ -2520,7 +2520,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)
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+long_alias.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `-l` as an alias for `--long` argument.

0 comments on commit b489943

Please sign in to comment.