question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arguments after "end of flags" (--) aren't easily available

See original GitHub issue

Feature 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
privatenumbercommented, Jan 28, 2022

Available in v2.1.0! Releasing in Cleye soon.

Thanks @jgoz

0reactions
privatenumbercommented, Jan 29, 2022

Released in Cleye 1.1.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found