-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Some users expect to be able to run cli --arg param required_arg in addition to the currently supported cli required_arg --arg param.
- Originally discussed in CHG: Permit flags as both prequel or sequel of positional arguments #123
- This might have an impact on the
catch_allfunctionality
Any reasonable solution will probably require changing the serial filters here:
so that they just work together as one, probably something like this:
- Go through each argument in the command line
- If it is a
--flag, add it to the${args[--flag]}array - If it is an
arg, add it to the${args[arg]}array, where the arg name is shifted from the full args list. - After all that is done, add a single filter that just checks that both required args and flags are present, and abort if not.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request