Replies: 1 comment
-
|
I'm a dumdum turns out I just wanted variadic args but misread what the feature was doing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's pretty common for a wrapper script to consume some args, but to pass everything else down into some child script/binary/whatever.
I think it's worth having a mechanism to capture this pattern. Obviously with
--it's easy to make the split... there would be something neat in being able to outright do something similar to Python'sargparse.parse_known_argsso then you could capture "every part of argv that we didn't handle" but that's probably a bit heavier of a design decisionThis is motivated by me wanting to use
#/usr/bin/env -s usage bashbut because so many of my scripts are wrapper scripts I want a nice way to capture remaining args here.Beta Was this translation helpful? Give feedback.
All reactions