Skip to content

Missing default flag in config init #465

Closed
@Renaud11232

Description

@Renaud11232

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions