Skip to content

--log-level Debug is documented but not accepted with capital "D" #714

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

Closed
ArminJo opened this issue May 20, 2020 · 1 comment · Fixed by #719
Closed

--log-level Debug is documented but not accepted with capital "D" #714

ArminJo opened this issue May 20, 2020 · 1 comment · Fixed by #719
Labels
topic: documentation Related to documentation for the project

Comments

@ArminJo
Copy link

ArminJo commented May 20, 2020

Bug Report

Current behavior

board listall -v --log-level Debug

is not accepted, but the usage states:

--log-level string Messages with this level and above will be logged. Valid levels are: Trace, Debug, Info, Warning, Error, Fatal, Panic

instead only

**board listall -v --log-level debug**

with lowercase "d" is accepted.

Please change usage or parser to be consistent.

Environment

  • CLI version (output of arduino-cli version): 1.10.0 Commit: ec5c3ed
  • OS and platform: windows, linux...
@ArminJo ArminJo changed the title --log-level Debug is documented but not accepted with capital **D** --log-level Debug is documented but not accepted with capital "D" May 20, 2020
@per1234
Copy link
Contributor

per1234 commented May 20, 2020

Thanks for the report @ArminJo!

This issue was fixed in the command line help by #653:

$ arduino-cli help
...
      --log-level string          Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic

but there seems to be a problem with the automated generation of the documentation for the command line interface that's published at https://arduino.github.io/arduino-cli/commands/arduino-cli/, so that page still contains the incorrect information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants