-
Notifications
You must be signed in to change notification settings - Fork 446
Closed
Milestone
Description
Picocli supports mixing options and parameters: http://picocli.info/#_mixing_options_and_positional_parameters
I would like to know what options have been specified before certain parameter. Consider such command:
print --paper A4 A.pdf --count 3 B.pdf --rotate left C.pdf -- D.pdf --rotate right E.pdf
Where:
--paperis an global option,--countand--rotateare "local" options, or parameter modifiers,--reset local options.
So, that command would evaluate to:
- globals:
paper = A4, - parameter
A.pdf:count = default, rotate = default, - parameter
B.pdf:count = 3, rotate = default, - parameter
C.pdf:count = 3, rotate = left, - parameter
D.pdf:count = default, rotate = default, - parameter
E.pdf:count = default, rotate = right.
Is there support for such things in picocli?
Metadata
Metadata
Assignees
Labels
No labels