clap/clap_complete
David Aguilar 58b0c504d8 fix(complete): Emit value terminators on zsh
Emit the user-defined value terminator into the zsh completion pattern
to avoid doubled rest-arguments definitions:

    $ my-app <TAB>
    _arguments:comparguments:325: doubled rest argument definition:
    *::second -- second set of of multi-length arguments:

https://github.com/clap-rs/clap/issues/3266#issuecomment-1007901407
noted that including the value terminator is one step towards a
robust solution for handling multiple multi-valued arguments.

This change does not yet handle automatically detecting when a value
terminator is needed, but it does add tests to ensure that
user-specified value terminators are used on zsh.

Related-to: #3022
Signed-off-by: David Aguilar <davvid@gmail.com>
2023-01-10 00:59:25 -08:00
..
examples docs(complete): Don't use deprecated API 2022-09-29 16:11:03 -05:00
src fix(complete): Emit value terminators on zsh 2023-01-10 00:59:25 -08:00
tests fix(complete): Emit value terminators on zsh 2023-01-10 00:59:25 -08:00
Cargo.toml chore: Switch to workspace inheritance 2023-01-09 12:35:54 -06:00
CHANGELOG.md chore: Release 2022-12-22 12:40:15 -06:00
CONTRIBUTING.md fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00
LICENSE-APACHE fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00
LICENSE-MIT docs(license): Update years/holders 2022-06-27 12:55:09 -05:00
README.md chore: Release 2022-12-22 12:40:15 -06:00

clap_complete

Shell completion generation for clap

Crates.io Crates.io License License

Dual-licensed under Apache 2.0 or MIT.

  1. About
  2. API Reference
  3. Questions & Discussions
  4. CONTRIBUTING
  5. Sponsors

About