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.

Can a verb have a child verb?

See original GitHub issue

Issue by sgrassie Friday Jul 17, 2015 at 10:56 GMT _Originally opened as https://github.com/gsscoder/commandline/issues/201_


I’d like to allow the following scenarios:

$ app verb -t
$ app verb childverb -u
$ app verb otherchildverb -z

Where -u and -z are both specific to the respective child verbs. Is the documentation in the wiki for this still valid, or has it changed in 2.0+?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ericnewton76commented, Nov 4, 2017

Comment by Mizipzor Friday Jan 29, 2016 at 22:21 GMT


Crazy idea, what if the verb name contained a space? Would that be able to fake a hierarchy?

1reaction
ericnewton76commented, Nov 4, 2017

Comment by gsscoder Saturday Jul 18, 2015 at 03:57 GMT


Hi @sgrassie, thank you again for being there.

Starting from easy things… 2.0+ documentation is condensed in this part of the wiki.

Command Line never supported nested verb (nor previous stable), but it’s a very interesting.

We can introduce a property to set the parent verb:

[Verb("verb1")]
class VerbOptions1 { }

[Verb("verbchild1", Parent="verb1")]
class VerbChildOptions1 { }

Than all options classes will be normally passed to ParseArguments<T1 ... Tn> with properly modified InstanceChooser.Choose call.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Verb To Have
The “to have” verb is the second most commonly used verb in the English language, and it have many important uses. Learn this...
Read more >
Verbs for Kids
Verbs can describe physical actions, mental actions, or states of being. ... Words used with "to have" to form verb tense are called...
Read more >
Can children use a verb without exposure to its argument ...
Subjects were willing to use all novel verbs both transitively and intransitively, although adults respected assigned transitivity more than children. All ...
Read more >
Early Verb Acquisition and What to Expect Before ...
The child will have to guess using the verb “to be” (i.e. “You are a dog!” “No! I am a cat!) 4. Regular...
Read more >
Verbs Pave the Way for Language Development
And the choice of verb determines many of the grammatical forms in a sentence. In fact, a recent study showed that 2-year-old children...
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