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.

Option multiple times

See original GitHub issue

Is it possible to pass an option (key=value) multiple times?

Like:

tool -g firsttime -g secondtime dsfgsdfg -g thirdtime

As result I want to get something like:

{"-g": ["firsttime", "secondtime", "thirdtime" ]}

Is there a way?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhangliyongcommented, Apr 16, 2014

I also look forward to support specifying a option multi times in Options-section, is there any plan to support it.

1reaction
keleshevcommented, Jan 15, 2014

It’s valid docopt, but unfortunately the options-section is more sloppy in what it allows without giving an error. This is something I’m looking into fixing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify the same option multiple times using Bash
First case#. Repeat specific option to provide multiple arguments. $ bash case-a.sh -p "first argument" -p "second one" -p "third one"
Read more >
How to select one option multiple times from jquery,js or html
I'm stuck with multiple select options where I want to select particular options multiple times I read select2 doc I don't get the...
Read more >
Buying and Selling options for the same stock multiple times in ...
In order to trade long options you need a funded brokerage account and Level 2 option trading approval.
Read more >
Allow selecting the same option multiple times in a multi-select
Go to https://select2.github.io/examples.html#tags. Type Letter 'o' (Orange will be listed in Option's List). Select Orange by "Mouse".
Read more >
Multiple CLI Options - Typer - tiangolo
You can declare a CLI option that can be used multiple times, and then get all the values. For example, let's say you...
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