feat: no command defaults to show all
This commit is contained in:
parent
0a0084bf75
commit
e8c37e6bcb
1 changed files with 4 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ def check_id(context, param, value):
|
|||
|
||||
|
||||
# Global group holding global options.
|
||||
@click.group()
|
||||
@click.group(invoke_without_command=True)
|
||||
# Core options.
|
||||
@click.option(
|
||||
'-c', '--config',
|
||||
|
|
@ -164,6 +164,9 @@ def cli(context, **kwargs):
|
|||
|
||||
context.obj['debug'] = kwargs['debug']
|
||||
|
||||
if not context.invoked_subcommand:
|
||||
context.invoke(show)
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.argument('TID', required=False, type=int, is_eager=True, callback=check_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue