Skip to content

Custom order for OptionGroup #617

@joffrey-bion

Description

@joffrey-bion

Is there any way to order option groups below the main options?

I have some advanced debugging options that are less important than the regular options. I placed them in a group so they appear separately in the help. Now they are shown first, but I'd like them to be last. How can I change this?

I declared the group last in the command properties, so I expected this to work like for the options order, but it didn't:

Usage: amper [<options>] <command> [<args>]...

Debugging options:

  Advanced options to debug Amper itself

  --async-profiler                            Profile Amper with Async Profiler
  --coroutines-debug / --no-coroutines-debug  Enable coroutines debug probes. This allows to dump the running coroutines in case of deadlock.

Options:
  -v, --version                            Show the version and exit
  --root=<path>                            Amper project root
  --log-level=(debug|info|warn|error|off)  Console logging level (default: INFO)
  --shared-caches-root=<path>              Path to the cache directory shared between all Amper projects (default: C:\Users\Joffrey.Bion\AppData\Local\JetBrains\Amper)
  --build-output=<path>                    Root directory for build outputs. By default, this is the build directory under the project root.
  -h, --help                               Show this message and exit

Commands:
  build                Compile and link all code in the project
  clean                Remove the project's build output and caches
  clean-shared-caches  Remove the Amper caches that are shared between projects
  generate-completion  Generate a tab-completion script for the Amper command for the given shell (bash, zsh, or fish)
  init                 Initialize a new Amper project based on a template
  package              Package the project artifacts for distribution
  publish              Publish modules to a repository
  run                  Run your application
  show                 Show information about some aspect the project (modules, tasks, effective settings...). See help for details.
  task                 Run a task and its dependencies from the task graph
  test                 Run tests in the project
  tool                 Run a tool
  update               Update Amper to the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions