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

Missing default flag in config init #465

Closed
Renaud11232 opened this issue Nov 1, 2019 · 0 comments · Fixed by #475
Closed

Missing default flag in config init #465

Renaud11232 opened this issue Nov 1, 2019 · 0 comments · Fixed by #475

Comments

@Renaud11232
Copy link

Bug Report

Current behavior

When running arduino-cli config init --default, I get the following output:

Error: unknown flag: --default
Usage:
  arduino-cli config init [flags]

Examples:
  # Creates a config file by asking questions to the user into the default location.
  C:\Users\gaspa\Downloads\arduino-cli-0.6.0.exe config init

  # Creates a config file with default configuration into default location.
  C:\Users\gaspa\Downloads\arduino-cli-0.6.0.exe config init --default


Flags:
  -h, --help             help for init
      --save-as string   Sets where to save the configuration file [default is ./arduino-cli.yaml].

Global Flags:
      --additional-urls strings   Additional URLs for the board manager.
      --config-file string        The custom config file (if not specified the default will be used).
      --format string             The output format, can be [text|json]. (default "text")
      --log-file string           Path to the file where logs will be written.
      --log-format string         The output format for the logs, can be [text|json]. (default "text")
      --log-level string          Messages with this level and above will be logged. (default "info")
  -v, --verbose

The first line says : Error: unknown flag: --default, but the examples do mention the --default flag.

In addition to that, config init with no other arguments does not ask any question to the user anymore.
Has the flag been removed and the command behaviour been changed ?

Expected behavior

Either, changing the examples to match the new behavior to something like :

# Creates a config file with default configuration into default location.
<executable-location> config init

Or, re-add the --default flag.

Environment

  • CLI version : arduino-cli-0.6.0.exe Version: 0.6.0 Commit: 3a08b07
  • OS and platform: Windows 10 Pro 64bit v1903
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

Successfully merging a pull request may close this issue.

1 participant