Ed Page
130b2ff997
test(parser): Show multiple positional multiple values behavior
2023-05-19 10:36:43 -05:00
Ed Page
65d44aa7b1
Merge pull request #4902 from epage/sub
...
fix(help): Don't use next-line-help on long-help for subcommands
2023-05-19 10:08:43 -05:00
Ed Page
d597cf7bd6
Merge pull request #4923 from epage/update
...
chore: Update from '_rust/main' template
2023-05-19 09:25:14 -05:00
Ed Page
21d911db10
style: Make clippy happy
2023-05-19 09:10:20 -05:00
Ed Page
8edf8c7676
Merge pull request #4922 from epage/docs
...
docs(builder): Remove stale docs references (set is default)
2023-05-19 09:02:18 -05:00
Ed Page
13f9836ebe
chore(ci): Clarify why map_or is banned
2023-05-19 08:55:22 -05:00
Ed Page
2b6bb28cd1
chore(ci): Catch clippy config failures
2023-05-18 14:58:59 -05:00
Ed Page
80d4cdd688
chore: Remove clippy lint past MSRV (needs 1.67)
2023-05-18 14:57:02 -05:00
Ed Page
ac5d893091
docs(builder): Remove stale docs references (set is default)
2023-05-18 13:11:14 -05:00
Ed Page
5c7bcff7b5
Merge pull request #4913 from Nemo157/disable-help-subcommand-recursion
...
Add note about Command::disable_help_subcommand applying to children
2023-05-18 08:52:04 -05:00
Wim Looman
c41f4beaaa
fix(docs): Add note about Command::disable_help_subcommand applying to children
2023-05-18 14:11:22 +02:00
Ed Page
1d42caa0b6
Merge pull request #4912 from epage/assert
...
fix(assert): Clarify last assertion
2023-05-17 17:10:08 -05:00
Ed Page
67cc5ea3a2
fix(assert): Clarify last assertion
...
An incremental improvement for #4911 .
2023-05-17 16:33:36 -05:00
Ed Page
011a2e7258
Merge pull request #4907 from cakebaker/cakebaker-fix_typo
...
Fix typo in value_parser.rs
2023-05-15 16:35:38 -05:00
Daniel Hofstetter
3458adc6ae
fix: Typo in value_parser.rs
2023-05-15 15:35:25 +02:00
Ed Page
3fa7b8fe51
Merge pull request #4903 from CosmicHorrorDev/doc-generate-all-completions
...
doc(complete): Add an example generating all shell completions
2023-05-13 13:36:44 -05:00
Cosmic Horror
863dd90ca4
docs(complete): Demo generating all completions
2023-05-13 11:25:55 -06:00
Ed Page
c3fe7ff0a9
fix(help): Don't use next-line-help on long-help for subcommands
...
Subcommands don't switch their behavior on `--help`, so let's not switch
to next-line-help based on `--help`.
Fixes #4897
2023-05-12 10:41:05 +02:00
Ed Page
36f79289ca
chore: Release
2023-05-12 10:23:52 +02:00
Ed Page
9d0e4512fa
docs: Update changelog
2023-05-12 10:23:40 +02:00
Ed Page
2fd3e4cbf9
Merge pull request #4899 from clubby789/zsh-subcommand-catchall
...
fix: (complete, zsh) Don't emit catchall when we have subcommands
2023-05-12 03:22:18 -05:00
clubby789
b1b2231db2
fix: Don't emit catchall when we have subcommands
2023-05-10 19:44:02 +01:00
Ed Page
2d4644a870
chore: Release
2023-05-09 21:44:11 +02:00
Ed Page
ea38450643
docs: Update changelog
2023-05-09 21:43:28 +02:00
Ed Page
fca1e0382b
Merge pull request #4896 from clubby789/bash-hint-other
...
completion: Respect `ValueHint::Other` in Bash
2023-05-09 14:44:01 -05:00
clubby789
2f97216156
fix: Respect ValueHint::Other
in bash
2023-05-09 20:11:48 +01:00
Ed Page
0174326fa6
Merge pull request #4890 from nyurik/format-args4
...
chore: Inline simple non-mixed format args
2023-05-04 15:14:00 -05:00
Yuri Astrakhan
d0302c5556
chore: Inline simple non-mixed format args
2023-05-04 15:58:04 -04:00
Ed Page
173f1ede0a
Merge pull request #4881 from nyurik/dedup-derive
...
chore: Dedup clap derive get fields
2023-05-04 08:27:29 -05:00
Yuri Astrakhan
003b45325a
chore: Dedup clap derive get fields
2023-05-03 23:09:30 -04:00
Ed Page
ba9cad6ca2
Merge pull request #4885 from epage/possible
...
refactor(help): Clean up long possible value handling
2023-05-03 21:17:45 -05:00
Ed Page
47c3b6f580
Merge pull request #4884 from nyurik/impl-order
...
chore: Order trait impl same as trait
2023-05-03 21:14:22 -05:00
Ed Page
5fb1b25799
Merge pull request #4883 from nyurik/happy-clippy
...
chore: Make Clippy happy
2023-05-03 21:13:47 -05:00
Ed Page
7c8648eb0e
Merge pull request #4882 from nyurik/inline_fmt
...
chore: Inline format args using clippy fix
2023-05-03 21:04:43 -05:00
Yuri Astrakhan
1dc6304fcf
chore: Order trait impl same as trait
2023-05-03 22:01:16 -04:00
Yuri Astrakhan
ebbdce4820
chore: Make Clippy happy
2023-05-03 21:56:07 -04:00
Yuri Astrakhan
797c23c415
chore: Inline format args using clippy fix
...
This command cleaned up all the format args,
making code significantly shorter and more readable.
```
cargo clippy --workspace --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2023-05-03 21:49:11 -04:00
Ed Page
3e6a77aefc
Merge pull request #4880 from epage/consistent
...
refactor(help): Be consistent in join style
2023-05-03 20:16:34 -05:00
Ed Page
1351c56289
fix(help): Consistently calculate PV name length
2023-05-03 20:15:31 -05:00
Ed Page
fabbe78140
Merge pull request #4879 from nyurik/dedup-powershell
...
chore: Deduplicate powershell code complete
2023-05-03 20:15:02 -05:00
Ed Page
3963d73e18
perf(help): Remove next-help possible values
...
Next-line help for possible values does not feel like its pulling its
weight. If anything we should do next-line help for the entire
argument.
This dropped about 0.5 KiB but more importantly is prep for other
changes.
2023-05-03 20:09:36 -05:00
Yuri Astrakhan
47cbc5f247
chore: Deduplicate powershell code complete
...
Makes powershell code more concise
2023-05-03 21:02:30 -04:00
Ed Page
543ad0ce06
Merge pull request #4878 from nyurik/dup-mangen
...
chore: remove dup code in mangen
2023-05-03 19:51:59 -05:00
Ed Page
ec52b74d68
refactor(help): Better call out long-pv policy
2023-05-03 19:48:48 -05:00
Yuri Astrakhan
a6d50e4219
chore: Remove dup code in mangen
2023-05-03 20:37:51 -04:00
Ed Page
9227ab1c7c
refactor(help): Be consistent in join style
2023-05-03 19:25:44 -05:00
Ed Page
a8587c9d3e
Merge pull request #4876 from nyurik/dedup-format
...
refactor: Minor code dedup for writing possible vals
2023-05-03 18:51:44 -05:00
Yuri Astrakhan
d810235d07
chore: Minor code dedup for writing possible vals
...
* writing possible values and subcommands used nearly identical code
* writing elements used duplicate code once for items and once for last item
2023-05-03 18:40:44 -04:00
Ed Page
baaf5c64c1
chore: Release
2023-05-02 14:07:29 -05:00
Ed Page
1e0d76b51f
docs: Update changelog
2023-05-02 14:07:17 -05:00