Support argument aliases that set multiple arguments #1030
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
C-enhancement
Category: Raise on the bar on expectations
S-wont-fix
Status: Closed as there is no plan to fix this
Problem Description
In my projects, I often have a scenario where there is a single shortcut switch which sets values for multiple switches. For example, in my current project, I have (taken directly from my code):
Now what I would like it for the argument
UTILIZATION
to explicitly set values forUBEGIN
,USTEP
andUEND
.As you can see, I currently have a overrides and conflicts rule and then later in the application code,
UTILIZATION
is tested for and the other values are set.Another way to implement this would be by allowing the user to manipulate values in the
ArgMatches
struct. Then one could simply set the values there before returning to the main client for consumption.This is not a very obscure feature but is often used in many programs. For a more real-world usage of such a feature, please look at GNU Wget, quoting from its manual here (Emphasis mine):
The text was updated successfully, but these errors were encountered: