You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/CommandLine.Tests/Fakes/Help_Fakes.cs
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
usingSystem.Collections.Generic;
4
4
usingCommandLine.Text;
5
+
usingMicrosoft.FSharp.Collections;
5
6
6
7
namespaceCommandLine.Tests.Fakes
7
8
{
@@ -12,6 +13,9 @@ class Simple_Options_Without_HelpText
12
13
13
14
[Option("input-file")]
14
15
publicstringFileName{get;set;}
16
+
17
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
18
+
publicstringSecertOption{get;set;}
15
19
}
16
20
17
21
classSimple_Options_With_HelpText_Set
@@ -21,6 +25,9 @@ class Simple_Options_With_HelpText_Set
21
25
22
26
[Option('i',"input-file",Required=true,HelpText="Specify input file to be processed.")]
23
27
publicstringFileName{get;set;}
28
+
29
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
@@ -30,6 +37,9 @@ class Simple_Options_With_HelpText_Set_To_Long_Description
30
37
31
38
[Option("input-file",HelpText="This is a very long description of the Input File argument that gets passed in. It should be passed in as a string.")]
32
39
publicstringFileName{get;set;}
40
+
41
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
54
+
publicstringSecertOption{get;set;}
42
55
}
43
56
44
57
classOptions_With_Usage_Attribute
@@ -64,6 +77,9 @@ class Options_With_Usage_Attribute
64
77
[Value(0,HelpText="Value.")]
65
78
publicstringValue{get;set;}
66
79
80
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
81
+
publicstringSecertOption{get;set;}
82
+
67
83
[Usage(ApplicationAlias="mono testapp.exe")]
68
84
publicstaticIEnumerable<Example>Examples
69
85
{
@@ -78,6 +94,16 @@ public static IEnumerable<Example> Examples
78
94
}
79
95
}
80
96
97
+
[Verb("secert",Hidden=true,HelpText="This is a secert hidden verb that should never be visible to the user via help text.")]
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
104
+
publicstringSecertOption{get;set;}
105
+
}
106
+
81
107
[Verb("add",HelpText="Add file contents to the index.")]
82
108
publicclassAdd_Verb_With_Usage_Attribute
83
109
{
@@ -92,6 +118,9 @@ public class Add_Verb_With_Usage_Attribute
92
118
[Value(0)]
93
119
publicstringFileName{get;set;}
94
120
121
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
122
+
publicstringSecertOption{get;set;}
123
+
95
124
[Usage(ApplicationAlias="git")]
96
125
publicstaticIEnumerable<Example>Examples
97
126
{
@@ -112,6 +141,9 @@ public class Commit_Verb_With_Usage_Attribute
112
141
[Option("amend",HelpText="Used to amend the tip of the current branch.")]
113
142
publicboolAmend{get;set;}
114
143
144
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
145
+
publicstringSecertOption{get;set;}
146
+
115
147
[Usage(ApplicationAlias="git")]
116
148
publicstaticIEnumerable<Example>Examples
117
149
{
@@ -133,6 +165,9 @@ public class Clone_Verb_With_Usage_Attribute
133
165
HelpText="Suppress summary message.")]
134
166
publicboolQuiet{get;set;}
135
167
168
+
[Option("secert-option",Hidden=true,HelpText="This is a description for a secert hidden option that should never be visibile to the user via help text.")]
0 commit comments