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

Choco with unknown command should show help menu #938

Closed
ferventcoder opened this issue Aug 31, 2016 · 5 comments
Closed

Choco with unknown command should show help menu #938

ferventcoder opened this issue Aug 31, 2016 · 5 comments

Comments

@ferventcoder
Copy link
Member

What You Are Seeing?

choco hi outputs - Could not find a command registered that meets 'hi'

What is Expected?

I should see the help menu

@TeaDrivenDev
Copy link

Thanks for picking this up!

Preferably, I think, it should just show the "Commands" part here and then say something like "Type 'choco /?' for full help". It's supposed to give you a first idea of what you might want to do, so it shouldn't be too much information at once. The full help will almost certainly scroll a page or two in most console windows, and that can be a bit disorienting (I know it is for me).

What about choco without any (attempted) command? I think that should also at least tell you about the /? switch, because while it's the Microsoft command line standard, it's not the most intuitive thing to think of if you don't happen to know that.

@ferventcoder
Copy link
Member Author

What about choco without any (attempted) command? I think that should also at least tell you about the /? switch, because while it's the Microsoft command line standard, it's not the most intuitive thing to think of if you don't happen to know that.

I believe choco with no arguments is parsed by some tools that use Chocolatey, so I'm not sure about that one.

@TeaDrivenDev
Copy link

Point taken. What about adding a help command as an alias for /?? That would be in line with the usual command style and probably the first thing many people try if they've ever seen a Chocolatey command line before. (Okay, separate issue then, I guess.)

@ferventcoder
Copy link
Member Author

Created #944. I thought I had an issue created for that. It looks like it was in my reminders list to create an issue for a "help" command.

@ferventcoder
Copy link
Member Author

Will provide a more actionable message in 0.10.1.

ferventcoder added a commit that referenced this issue Sep 14, 2016
When an unknown command is run, provide an actionable message on how to
get help instead of just an error.
ferventcoder added a commit that referenced this issue Sep 14, 2016
* stable:
  (doc) update generated docs for command reference
  (doc) add source to functions
  (doc) add new line in helper reference
  (GH-935) search/info/list --version
  (doc) provide more awareness about licensed
  (GH-893) Fix: Help Warns Required Elevated Rights
  (GH-959) Fix: Licensed feed cannot be disabled
  (GH-960) Fix: 7z File System Redirection
  (GH-938) Suggest choco help on unknown command
  (doc) Synchronizer/Enhancements to Autouninstaller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants