Skip to content

Is it possible to have a cloup.argument in an option_group? #170

Answered by janluke
wabiloo asked this question in Q&A
Discussion options

You must be logged in to vote

No, option groups are for flag options only. All positional arguments goes (optionally) in the "Positional arguments" section (if you specify help for at least one of them). You can still define constraints on all parameters with @constraint.

What happens in this case?

app search -t term_1 -i field_1 -t term_2 -t term_3 -i field_3

Is term_2 searched in field_3?

Replies: 1 comment 2 replies

Comment options

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

@janluke
Comment options

Answer selected by wabiloo
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