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

feat(ant-cli): show usage without arguments #2601

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Jan 6, 2025

When no subcommand is passed, show the usage and error the CLI.

zamaan@demo:~$ ant
Logging to directory: "$HOME/.local/share/autonomi/client/logs/log_2025-01-06_16-53-20"
error: Please provide a subcommand

Usage: ant-cli [OPTIONS] [COMMAND]

For more information, try '--help'.

zamaan@demo:~$ echo $?
2
zamaan@demo:~$ ant --version
Autonomi Client v0.3.1
Network version: ant/0.3/1
Package version: 2024.12.1.6
Git info: feat-show-usage-on-no-arguments-cli / 463b7068d / 1980-01-01

zamaan@demo:~$ echo $?
0

@b-zee b-zee force-pushed the feat-show-usage-on-no-arguments-cli branch from 2c8b9c2 to 463b706 Compare January 6, 2025 15:52
Copy link
Member

@grumbach grumbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@b-zee b-zee added this pull request to the merge queue Jan 7, 2025
Merged via the queue into maidsafe:main with commit 0e92735 Jan 7, 2025
25 checks passed
@b-zee b-zee deleted the feat-show-usage-on-no-arguments-cli branch January 7, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants