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
Hi again. For implementing "nesting" feature in HydrArgs (in fact, that is probably is one of the most important features in it) I need a way to get the "unconsumed" args. I mean the ones not recognized by the parser of the current level. I wonder what is the recommended way to do it? I guess it can be worked around by adding a dedicated positional argument into the end, but it would spoil help output and also would require a method to remove positional args from the spec (HydrArgs model assummes that args can be appended one-by-one, and in the case something must be done after the last arg is added, the framework has a pair of methods, _seal and _unseal. I can add the code adding a dummy positional arg into _seal, but there is no methods to remove them, so there is nothing that I can put into _unseal that reverts the action done by _seal).
So, if there is no such a feature, it may make sense to introuduce it, for example as a method setting a pointer to std::span<char *> (to place there just a direct subarray of argv).
The text was updated successfully, but these errors were encountered:
Thanks, get_unconsummed_args works like a charm. The backend now passes the already existing tests (but the test suite is incomplete (doesn't cover all the functionality I wished to have in HydrArgs) and the functionality implemented in HydArgs is currently incomplete).
Hi again. For implementing "nesting" feature in HydrArgs (in fact, that is probably is one of the most important features in it) I need a way to get the "unconsumed" args. I mean the ones not recognized by the parser of the current level. I wonder what is the recommended way to do it? I guess it can be worked around by adding a dedicated positional argument into the end, but it would spoil help output and also would require a method to remove positional args from the spec (HydrArgs model assummes that args can be appended one-by-one, and in the case something must be done after the last arg is added, the framework has a pair of methods,
_seal
and_unseal
. I can add the code adding a dummy positional arg into_seal
, but there is no methods to remove them, so there is nothing that I can put into_unseal
that reverts the action done by_seal
).So, if there is no such a feature, it may make sense to introuduce it, for example as a method setting a pointer to
std::span<char *>
(to place there just a direct subarray ofargv
).The text was updated successfully, but these errors were encountered: