Arguments after "end of flags" (--) aren't easily available
See original GitHub issueFeature request
Add a __
property that only contains the arguments following the end of flags token.
Why?
Arguments passed after the “end of flags” token (--
) are appended to _
, but there is no way to determine at which point in the array they start. It’s often the case that extra args need to be passed to a child process, which requires them to be separated from the “known” args.
With cleye
’s current design, it’s not possible to determine where the extra args begin.
Alternatives
Expose a property containing the index of the first extra arg.
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
golang flag stops parsing after the first non-option
The flag package implements the traditional behavior. One thing you could do is permuting the arguments array before parsing the flags. That's what...
Read more >When arguments() argument is provided, unrecognized flags ...
I am using commander 2.9.0 (graceful-readlink 1.0.1) on node v4.4.7 (on Windows, running in MSYS2, if it matters).
Read more >RewriteRule Flags - Apache HTTP Server Version 2.4
A RewriteRule can have its behavior modified by one or more flags. Flags are included in square brackets at the end of the...
Read more >Adding arguments and options to your Bash scripts - Red Hat
The ability to process options entered at the command line can be added to the Bash script using the while command in conjunction...
Read more >argparse — Parser for command-line options, arguments and ...
Parsing arguments¶. ArgumentParser parses arguments through the parse_args() method. This will inspect the command line, convert each argument to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Available in v2.1.0! Releasing in Cleye soon.
Thanks @jgoz
Released in Cleye 1.1.0