-
-
Couldn't load subscription status.
- Fork 1.1k
Open
Labels
A-completionArea: completion generatorArea: completion generatorC-bugCategory: bugCategory: bugS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementingStatus: Waiting on user-facing design to be resolved before implementing
Description
A trailing space signifies that there is nothing else to complete for this argument and the next argument should be started.
Cases where a space is appropriate
- long flags
- values
Cases where a space is not appropriate
- options that allow
= - short flags
- delimiter-separated values
Open questions
- When there is only one option left for a completion and there is "something more", like
--optcompleting for--option=value, instead of completing to--optionshould we offer every--option=valuepossible? - Can we do that for
--option valueas well? - Should we prefer
--option=valueor--option value? (requires_equalsandnum_argsbeing more than 1 are times when there isn't a choice) - When the "something more" is optional (using
num_args), should we offer with space and without?
Note: we might be able to defer some of these open questions as "parity with stable, static clap_complete" is the minimum bar
DianaNites, FliegendeWurst, tjarvstrand and jakobhellermann
Metadata
Metadata
Assignees
Labels
A-completionArea: completion generatorArea: completion generatorC-bugCategory: bugCategory: bugS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementingStatus: Waiting on user-facing design to be resolved before implementing