fix: copy the description of the option to its alias in completion#2269
Merged
bcoe merged 5 commits intoyargs:mainfrom Dec 28, 2022
tasshi-me:fix/add-description-of-alias-on-zsh-completion
Merged
fix: copy the description of the option to its alias in completion#2269bcoe merged 5 commits intoyargs:mainfrom tasshi-me:fix/add-description-of-alias-on-zsh-completion
bcoe merged 5 commits intoyargs:mainfrom
tasshi-me:fix/add-description-of-alias-on-zsh-completion
Conversation
bcoe
requested changes
Nov 21, 2022
lib/completion.ts
Outdated
| completions.push(dashes + key); | ||
| } else { | ||
| const desc = descs[key] || ''; | ||
| const aliasKey = this?.aliases?.[key]?.[0]; |
Member
There was a problem hiding this comment.
what about cases where there are multiple aliases associated with a key? should this be a loop?
Contributor
Author
There was a problem hiding this comment.
Oh, Thank you. Yes, sometimes the this?.aliases?.[key]?.[0] will be another alias without a description.
I will make it a loop.
Contributor
Author
|
@bcoe |
bcoe
approved these changes
Dec 28, 2022
Member
|
@mshrtsr thank you for the contribution 👌 |
This was referenced Jun 20, 2024
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 15, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ##### [\`v17.7.2\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ##### [\`v17.7.1\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ##### [\`v17.7.0\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ##### [\`v17.6.2\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ##### [\`v17.6.1\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 15, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ##### [\`v17.7.2\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ##### [\`v17.7.1\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ##### [\`v17.7.0\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ##### [\`v17.6.2\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ##### [\`v17.6.1\`](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 15, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 15, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 16, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 17, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 18, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 19, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 21, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 23, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 24, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 25, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 27, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 27, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 28, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Aug 29, 2024
| datasource | package | from | to | | ---------- | ------------ | ------ | ------- | | npm | yargs | 17.6.0 | 17.7.2 | | npm | @types/yargs | 16.0.0 | 17.0.33 | ## [v17.7.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1772-2023-04-27) ##### Bug Fixes - do not crash completion when having negated options ([#2322](yargs/yargs#2322)) ([7f42848](yargs/yargs@7f42848)) ## [v17.7.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1771-2023-02-21) ##### Bug Fixes - address display bug with default sub-commands ([#2303](yargs/yargs#2303)) ([9aa2490](yargs/yargs@9aa2490)) ## [v17.7.0](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1770-2023-02-13) ##### Features - add method to hide option extras ([#2156](yargs/yargs#2156)) ([2c144c4](yargs/yargs@2c144c4)) - convert line break to whitespace for the description of the option ([#2271](yargs/yargs#2271)) ([4cb41dc](yargs/yargs@4cb41dc)) ##### Bug Fixes - copy the description of the option to its alias in completion ([#2269](yargs/yargs#2269)) ([f37ee6f](yargs/yargs@f37ee6f)) ## [v17.6.2](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1762-2022-11-03) ##### Bug Fixes - **deps:** update dependency yargs-parser to v21.1.1 ([#2231](yargs/yargs#2231)) ([75b4d52](yargs/yargs@75b4d52)) - **lang:** typo in Finnish unknown argument singular form ([#2222](yargs/yargs#2222)) ([a6dfd0a](yargs/yargs@a6dfd0a)) ## [v17.6.1](https://github.com/yargs/yargs/blob/HEAD/CHANGELOG.md#1761-2022-11-02) ##### Bug Fixes - **lang:** fix "Not enough non-option arguments" message for the Czech language ([#2242](yargs/yargs#2242)) ([3987b13](yargs/yargs@3987b13))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #2268.
I find the original option for the alias and copy its description to the alias.
As a result, the option and its alias are collected together and aligned in the completion.