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

"balena help XXX": command not found #1343

Closed
pdcastro opened this issue Jul 11, 2019 · 5 comments
Closed

"balena help XXX": command not found #1343

pdcastro opened this issue Jul 11, 2019 · 5 comments

Comments

@pdcastro
Copy link
Contributor

Users get confused with the fact that the CLI help command produces output for subcommands, but says "command not found" for top-level commands. Example:

$ balena help os configure
Usage: os configure <image>
Use this command to configure a previously downloaded operating system image for
the specific device or for an application generally.
...

$ balena help os
Command not found: os

The "workaround" is to find out the full command list with balena help -v or on the reference website, then issue balena help for the "full" command (including subcommand).

$ balena help -v
...
    os build-config <image> <device-type> build the OS config and save it to the JSON file
    os configure <image>                  configure an os image
    os download <type>                    download an unconfigured os image
    os initialize <image>                 initialize an os image
    os versions <type>                    show the available balenaOS versions for the given device type
@balena-ci
Copy link
Contributor

[pdcastro] This issue has attached support thread https://jel.ly.fish/#/support-thread~a56f713d-fa21-441f-9446-0e7cd27f5324

@r4space
Copy link

r4space commented Jul 12, 2019

This very non-intuitive. Convention means the double word commands look like single word commands where the 2nd word is a parameter not part of the command switch statement (eg, "os download" shouldn't be a command, it should be ~"download-os" or just "download") The fact that alot of commands start with the same word only emphasizes this perception, it all looks like:

devices [option1] <option2>
local [option1] <option2> 
os [option1] <option2>
...etc

I understand making it more standard to any degree could involve alot of effort but a simple quick fix would just be to update the error message (make it print out help per convention) and add an example use '--help'

@pdcastro
Copy link
Contributor Author

Related to issue #694

@pdcastro
Copy link
Contributor Author

CC: @srlowe because of recent discussions on balena help conversion to oclif

@srlowe
Copy link
Contributor

srlowe commented Sep 16, 2020

Resolved in oclif migration.

@srlowe srlowe closed this as completed Sep 16, 2020
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

4 participants