Skip to content

docs: fix usage spec syntax from 'option' to 'flag'#6834

Merged
jdx merged 1 commit intomainfrom
10-31-docs_fix_usage_spec_syntax_from_option_to_flag_
Oct 31, 2025
Merged

docs: fix usage spec syntax from 'option' to 'flag'#6834
jdx merged 1 commit intomainfrom
10-31-docs_fix_usage_spec_syntax_from_option_to_flag_

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Oct 31, 2025

Replace incorrect 'option' keyword with 'flag' in usage spec examples.
The usage-lib library only supports 'flag' for command-line flags,
whether they take values or not.

Fixed in:

  • docs/tasks/task-arguments.md
  • docs/tasks/toml-tasks.md

Note

Updates usage spec examples to use flag (not option) for value-taking flags in docs.

  • Docs:
    • Update usage examples to use flag instead of option for value-taking flags in docs/tasks/task-arguments.md (migration guide example: --env <env>) and docs/tasks/toml-tasks.md (recommended usage: --format <format>).

Written by Cursor Bugbot for commit fdd2bbf. This will update automatically on new commits. Configure here.

Replace incorrect 'option' keyword with 'flag' in usage spec examples.
The usage-lib library only supports 'flag' for command-line flags,
whether they take values or not.

Fixed in:
- docs/tasks/task-arguments.md
- docs/tasks/toml-tasks.md
Copy link
Copy Markdown
Owner Author

jdx commented Oct 31, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jdx jdx marked this pull request as ready for review October 31, 2025 21:31
Copilot AI review requested due to automatic review settings October 31, 2025 21:31
@jdx jdx enabled auto-merge (squash) October 31, 2025 21:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects documentation syntax errors in usage specifications by replacing the incorrect option keyword with the correct flag keyword. The usage-lib library only recognizes flag for command-line flags, regardless of whether they accept values.

Key Changes:

  • Updated usage spec syntax from option to flag for value-accepting flags in two documentation files

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/tasks/toml-tasks.md Changed option "--format <format>" to flag "--format <format>" in usage spec example
docs/tasks/task-arguments.md Changed option "--env <env>" to flag "--env <env>" in usage spec example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jdx jdx merged commit 8b3a5aa into main Oct 31, 2025
32 checks passed
@jdx jdx deleted the 10-31-docs_fix_usage_spec_syntax_from_option_to_flag_ branch October 31, 2025 21:43
@github-actions
Copy link
Copy Markdown

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.10.21 x -- echo 18.2 ± 0.3 17.6 20.7 1.00
mise x -- echo 18.3 ± 0.3 17.7 19.6 1.01 ± 0.02

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.10.21 env 17.7 ± 0.3 17.3 21.5 1.00
mise env 17.9 ± 0.7 17.3 23.4 1.01 ± 0.04

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.10.21 hook-env 17.9 ± 0.2 17.4 18.6 1.00 ± 0.02
mise hook-env 17.9 ± 0.2 17.4 18.7 1.00

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.10.21 ls 15.4 ± 0.2 15.0 16.3 1.00
mise ls 15.5 ± 0.5 15.0 22.1 1.00 ± 0.03

xtasks/test/perf

Command mise-2025.10.21 mise Variance
install (cached) 106ms 104ms +1%
ls (cached) 64ms 63ms +1%
bin-paths (cached) 70ms 69ms +1%
task-ls (cached) 416ms 466ms -10%

jdx pushed a commit that referenced this pull request Nov 1, 2025
### 🐛 Bug Fixes

- **(activate)** reset PATH when activate is called multiple times by
@jdx in [#6829](#6829)
- **(env)** preserve user-configured PATH entries from env._.path by
@jdx in [#6835](#6835)
- store tool options for all backends in metadata by @roele in
[#6807](#6807)

### 📚 Documentation

- fix usage spec syntax from 'option' to 'flag' by @jdx in
[#6834](#6834)

### 📦️ Dependency Updates

- update ghcr.io/jdx/mise:alpine docker digest to 7351bbe by
@renovate[bot] in [#6826](#6826)
- update ghcr.io/jdx/mise:deb docker digest to 3a847f2 by @renovate[bot]
in [#6828](#6828)
- update ghcr.io/jdx/mise:copr docker digest to 546dffb by
@renovate[bot] in [#6827](#6827)
- pin jdx/mise-action action to e3d7b8d by @renovate[bot] in
[#6825](#6825)
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 this pull request may close these issues.

2 participants