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

CLI: show help anytime a command is called with no args #387

Open
brimoor opened this issue Jan 2, 2020 · 0 comments
Open

CLI: show help anytime a command is called with no args #387

brimoor opened this issue Jan 2, 2020 · 0 comments
Labels
enhancement Code enhancement

Comments

@brimoor
Copy link
Contributor

brimoor commented Jan 2, 2020

#382 addresses this for "meta" commands that are only composed of subcommands. I.e., eta auth will automatically show help.

However, eta build does not show help.

The ask is to find a clean to show help anytime an empty argparse.Namespace object is passed to Command.run. But I haven't found a clean way to do that.

Note that it's possible for some commands to intentionally not have arguments. Like voxel51 status, for example, in the API CLI. So, the above logic should not be applied blindly everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Code enhancement
Projects
None yet
Development

No branches or pull requests

1 participant