File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ var app = ConsoleApp.Create(args);
3636app .AddCommands <Foo >();
3737app .Run ();
3838
39- // // AddSubCommands register as sub(nested) command.
40- // // foo echo --msg --repeat(default = 3)
41- // // foo sum [x] [y]
42- // app.AddSubCommands<Foo>();
43- // app.Run();
44-
4539public class Foo : ConsoleAppBase
4640{
4741 public void Echo (string msg , int repeat = 3 )
@@ -62,7 +56,7 @@ public class Foo : ConsoleAppBase
6256If you have many commands, you can define class separetely and use ` AddAllCommandType ` to register all commands one-line.
6357
6458``` csharp
65- // register `Foo` and `Bar` as SubCommands.
59+ // Register `Foo` and `Bar` as SubCommands(You can also use AddSubCommands<T> to register manually) .
6660// foo echo --msg
6761// foo sum [x] [y]
6862// bar hello2
You can’t perform that action at this time.
0 commit comments