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

‘--help’ recursively refers to itself #287

Closed
kseistrup opened this issue Jan 6, 2023 · 2 comments
Closed

‘--help’ recursively refers to itself #287

kseistrup opened this issue Jan 6, 2023 · 2 comments

Comments

@kseistrup
Copy link

The help in v0.33.1 is a little confusing:

$ toot -h      # just guessing that ‘-h’ will show some help
Unknown command '-h'
Run toot --help to show a list of available commands.
$ toot --help  # let's try the suggestion
Unknown command '--help'
Run toot --help to show a list of available commands.

However, an empty “command” will do the trick:

$ toot '' --help
toot - a Mastodon CLI client
v0.33.1

Authentication:
  toot login            Log into a mastodon instance using your browser (recommended)
  toot login_cli        Log in from the console, does NOT support two factor authentication
    ⋮
@ihabunek
Copy link
Owner

b8f49ef adds support for toot --help.

@ihabunek
Copy link
Owner

I plan a refactor which will improve this further, but this is a quick fix for now.

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

No branches or pull requests

2 participants