Skip to content

Commit 19e740a

Browse files
committed
more fix readme
1 parent cd6105e commit 19e740a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ReadMe.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ var app = ConsoleApp.Create(args);
3636
app.AddCommands<Foo>();
3737
app.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-
4539
public class Foo : ConsoleAppBase
4640
{
4741
public void Echo(string msg, int repeat = 3)
@@ -62,7 +56,7 @@ public class Foo : ConsoleAppBase
6256
If 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

0 commit comments

Comments
 (0)