Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -l as an alias for --long argument #1044

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions b2/_internal/console_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
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
Loading