diff --git a/src/aleph_client/__main__.py b/src/aleph_client/__main__.py index ee17f121..e399f3c3 100644 --- a/src/aleph_client/__main__.py +++ b/src/aleph_client/__main__.py @@ -16,7 +16,7 @@ program, ) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) app.add_typer(account.app, name="account", help="Manage account") app.add_typer( diff --git a/src/aleph_client/commands/about.py b/src/aleph_client/commands/about.py index ad994236..72f959d5 100644 --- a/src/aleph_client/commands/about.py +++ b/src/aleph_client/commands/about.py @@ -3,7 +3,7 @@ from aleph_client.utils import AsyncTyper -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) def get_version(value: bool): diff --git a/src/aleph_client/commands/account.py b/src/aleph_client/commands/account.py index fdd63f42..ddb6c221 100644 --- a/src/aleph_client/commands/account.py +++ b/src/aleph_client/commands/account.py @@ -21,7 +21,7 @@ from aleph_client.utils import AsyncTyper logger = logging.getLogger(__name__) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) @app.command() diff --git a/src/aleph_client/commands/aggregate.py b/src/aleph_client/commands/aggregate.py index efe149e8..0db9d39c 100644 --- a/src/aleph_client/commands/aggregate.py +++ b/src/aleph_client/commands/aggregate.py @@ -15,7 +15,7 @@ from aleph_client.commands.utils import setup_logging from aleph_client.utils import AsyncTyper -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) @app.command() diff --git a/src/aleph_client/commands/domain.py b/src/aleph_client/commands/domain.py index 71f8c2c8..560f5458 100644 --- a/src/aleph_client/commands/domain.py +++ b/src/aleph_client/commands/domain.py @@ -25,7 +25,7 @@ from aleph_client.commands.utils import is_environment_interactive from aleph_client.utils import AsyncTyper -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) async def get_aggregate_domain_info(account, fqdn): diff --git a/src/aleph_client/commands/files.py b/src/aleph_client/commands/files.py index 774d7fb0..a698989e 100644 --- a/src/aleph_client/commands/files.py +++ b/src/aleph_client/commands/files.py @@ -22,7 +22,7 @@ from aleph_client.utils import AsyncTyper logger = logging.getLogger(__name__) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) @app.command() diff --git a/src/aleph_client/commands/instance.py b/src/aleph_client/commands/instance.py index 052bd3a2..84fdb755 100644 --- a/src/aleph_client/commands/instance.py +++ b/src/aleph_client/commands/instance.py @@ -33,7 +33,7 @@ from aleph_client.utils import AsyncTyper logger = logging.getLogger(__name__) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) def load_ssh_pubkey(ssh_pubkey_file: Path) -> str: diff --git a/src/aleph_client/commands/message.py b/src/aleph_client/commands/message.py index 8c15250f..f4b52898 100644 --- a/src/aleph_client/commands/message.py +++ b/src/aleph_client/commands/message.py @@ -27,7 +27,7 @@ from aleph_client.utils import AsyncTyper from aleph_message.models import AlephMessage, ItemHash, MessageType, ProgramMessage -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) @app.command() diff --git a/src/aleph_client/commands/node.py b/src/aleph_client/commands/node.py index 15a0360e..817b7806 100644 --- a/src/aleph_client/commands/node.py +++ b/src/aleph_client/commands/node.py @@ -16,7 +16,7 @@ from aleph_client.utils import AsyncTyper logger = logging.getLogger(__name__) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) node_link = "https://api2.aleph.im/api/v0/aggregates/0xa1B3bb7d2332383D96b7796B908fB7f7F3c2Be10.json?keys=corechannel" diff --git a/src/aleph_client/commands/program.py b/src/aleph_client/commands/program.py index ee680c54..8eeb6907 100644 --- a/src/aleph_client/commands/program.py +++ b/src/aleph_client/commands/program.py @@ -30,7 +30,7 @@ from aleph_message.status import MessageStatus logger = logging.getLogger(__name__) -app = AsyncTyper() +app = AsyncTyper(no_args_is_help=True) @app.command()