Skip to content

Conversation

@DannyBen
Copy link
Member

@DannyBen DannyBen commented Dec 7, 2023

As discussed in #452

This PR allows specifying unique: true for an argument, when it is repeatable: true:

args:
- name: target
  help: Target filename
  repeatable: true
  unique: true   # <-- New option

so that the following command line:

./cli one two one

will result in "one two" and not "one two one".

@DannyBen DannyBen merged commit ac3df69 into master Dec 7, 2023
@DannyBen DannyBen deleted the add/unique-repeatable-arg branch December 7, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant