Skip to content

Conversation

@bittrance
Copy link
Contributor

What type of PR is this?

  • bug

What this PR does / why we need it:

Previously, completions for foo bar -- and baz bar -- would include flags from both sub-commands because they would only match on "bar". This is now fixed by including the full ancestry in the complete instructions.

Which issue(s) this PR fixes:

Fixes #2115.

Testing

Before:

$ mycli more-awesome set -- <tab>
--decrease  --help  (show help)  --increase
$ mycli less-awesome set -- <tab>
--decrease  --help  (show help)  --increase

After:

$ mycli more-awesome set -- <tab>
--help  (show help)  --increase
$ mycli less-awesome set -- <tab>
--decrease  --help  (show help)

Release Notes

Fish completions no longer conflate options from identically-named sub-commands.

…dentical names.

Previously, completions for [foo bar --] and [baz bar --] would include
flags from both subcommands because they would only match on "bar". This
is now fixed by including the full ancestry.
@bittrance bittrance requested a review from a team as a code owner May 11, 2025 09:51
@bittrance bittrance force-pushed the fish-completion-conflation branch from 114931e to 0edd038 Compare May 21, 2025 21:26
@dearchap dearchap merged commit cb0fc21 into urfave:main May 22, 2025
7 checks passed
ugoenyioha pushed a commit to ugoenyioha/tea that referenced this pull request Jan 2, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v3](https://github.com/urfave/cli) | require | patch | `v3.3.3` -> `v3.3.8` |

---

### Release Notes

<details>
<summary>urfave/cli (github.com/urfave/cli/v3)</summary>

### [`v3.3.8`](https://github.com/urfave/cli/releases/tag/v3.3.8)

[Compare Source](urfave/cli@v3.3.7...v3.3.8)

#### What's Changed

-   Remove "alpha" wording around `v3` series by [@&#8203;meatballhat](https://github.com/meatballhat) in urfave/cli#2155

**Full Changelog**: urfave/cli@v3.3.7...v3.3.8

### [`v3.3.7`](https://github.com/urfave/cli/releases/tag/v3.3.7)

[Compare Source](urfave/cli@v3.3.6...v3.3.7)

#### What's Changed

-   fix: add missing `IsLocal` for BoolWithInverseFlag by [@&#8203;huiyifyj](https://github.com/huiyifyj) in urfave/cli#2151
-   Fix OnUsageError Trigger When Error Is Caused by Mutually Exclusive Flags by [@&#8203;Ali-Doustkani](https://github.com/Ali-Doustkani) in urfave/cli#2152

#### New Contributors

-   [@&#8203;Ali-Doustkani](https://github.com/Ali-Doustkani) made their first contribution in urfave/cli#2152

**Full Changelog**: urfave/cli@v3.3.6...v3.3.7

### [`v3.3.6`](https://github.com/urfave/cli/releases/tag/v3.3.6)

[Compare Source](urfave/cli@v3.3.5...v3.3.6)

#### What's Changed

-   Fish completions with identically named sub-commands now work by [@&#8203;bittrance](https://github.com/bittrance) in urfave/cli#2130

**Full Changelog**: urfave/cli@v3.3.5...v3.3.6

### [`v3.3.5`](https://github.com/urfave/cli/releases/tag/v3.3.5)

[Compare Source](urfave/cli@v3.3.4...v3.3.5)

#### What's Changed

-   Fix:(issue\_2137) Ensure default value for bool with inverse flag is h… by [@&#8203;dearchap](https://github.com/dearchap) in urfave/cli#2138
-   Fix:(issue\_2131) Show help text for BoolWithInverseFlag by [@&#8203;Juneezee](https://github.com/Juneezee) in urfave/cli#2142

**Full Changelog**: urfave/cli@v3.3.4...v3.3.5

### [`v3.3.4`](https://github.com/urfave/cli/releases/tag/v3.3.4)

[Compare Source](urfave/cli@v3.3.3...v3.3.4)

#### What's Changed

-   Fix Docs(issue\_2125) Add PathFlag to StringFlag migration by [@&#8203;dearchap](https://github.com/dearchap) in urfave/cli#2136
-   fix: remove extraneous space from subcommand help template by [@&#8203;G-Rath](https://github.com/G-Rath) in urfave/cli#2140
-   Fix:(issue\_2135) Correct formatting of default subcommand USAGE text by [@&#8203;zzspoon](https://github.com/zzspoon) in urfave/cli#2139

#### New Contributors

-   [@&#8203;zzspoon](https://github.com/zzspoon) made their first contribution in urfave/cli#2139

**Full Changelog**: urfave/cli@v3.3.3...v3.3.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40OS42IiwidXBkYXRlZEluVmVyIjoiNDAuNDkuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://gitea.com/gitea/tea/pulls/766
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
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.

v3 fish completions conflate 2+ level subcommand options

3 participants