Skip to content

catch-all-advanced and flags #199

Answered by DannyBen
felixlohmeier asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I have looked a little deeper, so this will be a long post.

Bottom line

  1. I believe it is safe to rely on this functionality.
  2. I will add have added an example (which is also a test case for the automatic tests) to ensure it remains like this.
  3. I might add support for repeatable args. The reasoning for not adding them can be alleviated by the same technique used in the repeatable flags-with-args (#200).
  4. I want to make sure you are aware of the repeatable flags - which is another way to let users provide multiple items of the same.

Implementation using catch_all

At first, I tested with a variation of your YAML file. Note I made some changes you might want to consider:

name: cli
help: Sa…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@felixlohmeier
Comment options

@DannyBen
Comment options

@felixlohmeier
Comment options

@DannyBen
Comment options

Comment options

You must be logged in to vote
2 replies
@felixlohmeier
Comment options

@DannyBen
Comment options

Answer selected by felixlohmeier
Comment options

You must be logged in to vote
4 replies
@felixlohmeier
Comment options

@DannyBen
Comment options

@felixlohmeier
Comment options

@DannyBen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants