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.

Separate `--` and `_` arguments

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
Qix-commented, Dec 30, 2018

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.

Also, for the find style behaviour, there’s no way to do this in arg today. Do you want to try and support this somehow?

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.

0reactions
blakeembreycommented, Jan 1, 2019

@Qix- Sure, that makes sense 👍

Read more comments on GitHub >

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

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