You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I'm trying to improve the FAKE 5 CLI even further by having multi-phase parameter parsing (at least I'm playing with the idea).
This means I somehow need to be able to forward parameters from a given point to the next level (unprocessed by Argu). In POSIX we would use -- for this.
Examples:
Assume that --conflictingArg is defined in the Argu type and you emulate a single positional argument via GatherUnrecognized:
In this scenario I'd like Argu to take all unrecognized arguments. This case works okish. The only thing I don't like is that once one argument is "Unrecognized", here --unparsedUnknownArg I'd like Argu to mark all following arguments as unrecognized as well.
However adding this feature would break my usage of GateherUnrecognized because then I can no longer use it for the positional argument (build.fsx).
example.exe build.fsx --conflictingArg test -- --conflictingArg
In this situation I'd like to get all raw data after --. I tried to use string list arguments for this but it didn't work.
@eiriktsarpalis Can you sketch out an idea how you would integrate this feature into the Argu code-base? Or is this already possible?
My current thinking is that this needs two things:
Something to support -- to get "raw" arguments after this token.
Maybe this syntax is a bit ambiguous I haven't worked out the details yet. But my options in Argu are quite limited at this point so I'd try to extend them.
Known workarounds
Don't use a CLI like above.
The text was updated successfully, but these errors were encountered:
Description
Currently I'm trying to improve the FAKE 5 CLI even further by having multi-phase parameter parsing (at least I'm playing with the idea).
This means I somehow need to be able to forward parameters from a given point to the next level (unprocessed by Argu). In POSIX we would use
--
for this.Examples:
Assume that
--conflictingArg
is defined in the Argu type and you emulate a single positional argument viaGatherUnrecognized
:example.exe build.fsx --unparsedUnknownArg --conflictingArg
In this scenario I'd like Argu to take all unrecognized arguments. This case works okish. The only thing I don't like is that once one argument is "Unrecognized", here
--unparsedUnknownArg
I'd like Argu to mark all following arguments as unrecognized as well.However adding this feature would break my usage of
GateherUnrecognized
because then I can no longer use it for the positional argument (build.fsx
).example.exe build.fsx --conflictingArg test -- --conflictingArg
In this situation I'd like to get all raw data after
--
. I tried to usestring list
arguments for this but it didn't work.@eiriktsarpalis Can you sketch out an idea how you would integrate this feature into the Argu code-base? Or is this already possible?
My current thinking is that this needs two things:
--
to get "raw" arguments after this token.Maybe this syntax is a bit ambiguous I haven't worked out the details yet. But my options in Argu are quite limited at this point so I'd try to extend them.
Known workarounds
Don't use a CLI like above.
The text was updated successfully, but these errors were encountered: