Separate `--` and `_` arguments
See original GitHub issueI need the ability to get _
arguments and --
separately. Currently everything after --
gets placed into args._
so I can’t tell which was after the --
argument or which was part of the command. This is required to use in projects such as https://github.com/Qard/onchange.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
how to spell: argument and separate
Separate changes sound depending on whether it's a verb, adjective or adverb. They're spelt the same way, so let's look at some memory...
Read more >What do you use to separate arguments in a function? - Quora
Parenthesis to isolate separately computed arguments, and sometimes parenthesis about the verb to distinguish arguments from the adverb or conjunction.
Read more >5.6 Parameters and Arguments
Arguments are separated by commas. However, the comma is not an operator in this context, and the arguments can be evaluated by the...
Read more >Different Types of Arguments | University Writing & Speaking ...
Different types of arguments · Modern American Five Part Essay · Classical Western Argument · Toulmin Argument · Rogerian Argument · Center Contact ......
Read more >Critical writing: Individual arguments - LibGuides
Understanding the structure of an individual argument is essential for both academic writing and reading. Here we look at this in relation ...
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 FreeTop 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
Top GitHub Comments
Yeah I’m trying to think of how this could be added in a generally GNU-ish way but I can’t think of anything that doesn’t introduce yet another option. 😕 It’s a real edge case IMO, I don’t see many programs use
--
as a major delimiter.Not really, no - their flags are positional as well (as in, order of flags matters), and they use single hyphens for long flags. It’s an entirely different parsing scheme that would more than likely be easier to implement in a custom manner - definitely out of scope for
arg
.@Qix- Sure, that makes sense 👍