12 Commits

Author SHA1 Message Date
Ben Wiederhake 6e5f7b7ea3 remove 'complete' feature flag, make it unconditional
This avoids using cfg with the destination-crate's feature "complete"
in proc-macro "derive".

Quoting cargo:

    using a cfg inside a derive macro will use the cfgs from the
    destination crate and not the ones from the defining crate

In these two instances, the cfg was simply used to avoid emitting dead
code if the "complete" feature is not desired. By passing the "complete"
feature down to the derive crate and evaluating if there, we achieve the
same goal, without having to deal with suprisingly-valued and unexpected
cfgs downstream.

Alternatively, we could just evaluate the flag inside the derive crate,
and pass the feature flag to it.
2025-04-12 22:20:32 +02:00
Daniel Hofstetter 32883b540a Merge pull request #115 from BenWiederhake/dev-bash-completion
Rudimentary bash completion
2025-04-01 10:51:13 +02:00
Ben Wiederhake 6d2b4f423b fix documented list of supported shell completions 2025-04-01 10:39:13 +02:00
Ben Wiederhake dca1347b74 make Options::apply fallible 2025-04-01 10:37:50 +02:00
Terts Diepraam 43f792f91e remove parse and rename try_parse to parse 2023-12-19 15:13:12 +01:00
Terts Diepraam f01d94d8da add navigation links to docs 2023-12-19 14:42:48 +01:00
Terts Diepraam 88019ffe4b add docs for Value trait and derive 2023-12-19 13:22:39 +01:00
Terts Diepraam 50cd4b1494 update docs to new positional arguments 2023-12-19 12:30:45 +01:00
Terts Diepraam 04131a41c8 document completion generation 2023-12-19 12:10:44 +01:00
Terts Diepraam 8adaad0565 start writing guide for porting from clap 2023-12-19 12:10:44 +01:00
Terts Diepraam d67f2cd250 clean up assertions for quick start 2023-12-19 12:10:44 +01:00
Terts Diepraam d62daf9155 start working on guide-level docs 2023-12-19 12:10:44 +01:00