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.

Need support for periods in an option string?

See original GitHub issue

let say I want options like --vpn.user=bob; vpn.host=sub.domain.net; … adding

vorpal
    .command('...')
    .option('--vpn.user', '...')
    .option('--vpn.host', '...')

would throw an error as options.vpn is not set

so we need to do

vorpal
    .command('...')
    .option('--vpn')
    .option('--vpn.user', '...')
    .option('--vpn.host', '...')

even we don’t have usage for vpn option. this pollute the help generation, is prone to making errors and is kind of a boiler plate

maybe we could use something like https://www.npmjs.com/package/objectkit to auto create path ?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
GranularDetectivecommented, May 5, 2016

@dthree Why would you want to pollute your own code?

3reactions
dthreecommented, May 5, 2016

@PeterDCarter he was referring to adding necessary boilerplate (or figuratively trash) to the code, obscuring its clarity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tampons, Pads, and Other Period Supplies (for Teens)
Tampons have a string attached to one end that stays outside a girl's body. To remove the tampon, pull gently on the string...
Read more >
Period products: what are the options? - IPPF
From the more 'traditional' options of sanitary pads and tampons, to the innovative absorbent underwear, there are lots of options.
Read more >
Menstrual Disc: What to Know Before You Try - Healthline
Without a string or loop to grab though, you may need to bear down or try different positions to reach it. Where can...
Read more >
The 5 Best Menstrual Cups of 2022 | Reviews by Wirecutter
We're testing reusable menstrual discs from Cora, Diva, Flex, June, Rhythm, and Saalt, and considering cups from CVS, OI, Rhythm, The Honey ...
Read more >
Period products - Family Planning
These are pieces of cotton with a string at one end. You put them into your vagina to soak up your blood, and...
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