Skip to content

Commit

Permalink
#152 improved user manual example for declaratively nesting sub-subco…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
remkop committed Aug 6, 2017
1 parent 956bd95 commit 7a28f69
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1205,34 +1205,17 @@ Declaratively, subcommands can be nested by specifying the `subcommands` attribu
ChildCommand3.class })
class MainCommand { }
@Command(name = "cmd1")
class ChildCommand1 { }
@Command(name = "cmd2")
class ChildCommand2 { }
@Command(name = "cmd3", subcommands = {
GrandChild3Command1.class,
GrandChild3Command2.class,
GrandChild3Command3.class })
class ChildCommand3 { }
@Command(name = "cmd3sub1")
class GrandChild3Command1 { }
@Command(name = "cmd3sub2")
class GrandChild3Command2 { }
@Command(name = "cmd3sub3", subcommands = {
GreatGrandChild3Command3_1.class,
GreatGrandChild3Command3_2.class })
class GrandChild3Command3 { }
@Command(name = "cmd3sub3sub1")
class GreatGrandChild3Command3_1 { }
@Command(name = "cmd3sub3sub2")
class GreatGrandChild3Command3_2 { }
...
----


Expand Down

0 comments on commit 7a28f69

Please sign in to comment.