File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ public static void TestPostBuild()
148148 CommandLineParser . PostBuildStep < Test1Cmd > ( reporter ) ;
149149 CommandLineParser . PostBuildStep < Test2Cmd > ( reporter ) ;
150150 CommandLineParser . PostBuildStep < Test3Cmd > ( reporter ) ;
151+ CommandLineParser . PostBuildStep < Test5Cmd3 > ( reporter ) ;
151152 }
152153
153154 [ Fact ]
Original file line number Diff line number Diff line change @@ -15,3 +15,26 @@ class Test5Cmd2
1515 [ IsPositional ( 1 ) , IsMandatory ] public int One ;
1616 [ IsPositional ( 0 ) ] public int Two ;
1717}
18+
19+ class Test5Cmd3
20+ {
21+ [ IsPositional , IsMandatory ] public Test5Cmd3_CmdBase Cmd ;
22+ }
23+
24+ [ CommandGroup ]
25+ abstract class Test5Cmd3_CmdBase
26+ {
27+ [ IsPositional ( 1 ) , IsMandatory ] public string One ;
28+ [ IsPositional ( 1 ) , IsMandatory ] public Test5Cmd3_SubCmdBase Sub ;
29+ }
30+
31+ [ CommandName ( "cmd" ) ]
32+ class Test5Cmd3_Cmd : Test5Cmd3_CmdBase
33+ {
34+ [ IsPositional ( 0 ) , IsMandatory ] public string Two ;
35+ }
36+
37+ [ CommandGroup ]
38+ abstract class Test5Cmd3_SubCmdBase { }
39+ [ CommandName ( "sub" ) ]
40+ class Test5Cmd3_SubCmd : Test5Cmd3_SubCmdBase { }
You can’t perform that action at this time.
0 commit comments