@@ -54,7 +54,7 @@ public HelpCommandLineOption(IEnumerable<string> helpArgs)
54
54
/// </summary>
55
55
internal Action < string > ReturnCallback { get ; set ; }
56
56
57
- private Action ReturnCallbackWithoutParser { get ; set ; }
57
+ private Action ReturnCallbackWithoutParser { get ; set ; }
58
58
59
59
/// <summary>
60
60
/// Gets or sets any header to display at the top of the printed options.
@@ -84,21 +84,21 @@ public IHelpCommandLineOptionFluent Callback(Action<string> callback)
84
84
return this ;
85
85
}
86
86
87
- /// <summary>
88
- /// Specified the method to invoke when any of the setup help arguments are found. If a callback is not required
89
- /// either do not call it, or specified <c>null</c>.
90
- /// </summary>
91
- /// <param name="callback">
92
- /// The callback to execute. If you have also setup the other help callback this will be called last.
93
- /// </param>
94
- /// <returns>A <see cref="ICommandLineOptionFluent{T}"/>.</returns>
95
- public IHelpCommandLineOptionFluent Callback ( Action callback )
96
- {
97
- ReturnCallbackWithoutParser = callback ;
98
- return this ;
99
- }
100
-
101
- /// <summary>
87
+ /// <summary>
88
+ /// Specified the method to invoke when any of the setup help arguments are found. If a callback is not required
89
+ /// either do not call it, or specified <c>null</c>.
90
+ /// </summary>
91
+ /// <param name="callback">
92
+ /// The callback to execute. If you have also setup the other help callback this will be called last.
93
+ /// </param>
94
+ /// <returns>A <see cref="ICommandLineOptionFluent{T}"/>.</returns>
95
+ public IHelpCommandLineOptionFluent Callback ( Action callback )
96
+ {
97
+ ReturnCallbackWithoutParser = callback ;
98
+ return this ;
99
+ }
100
+
101
+ /// <summary>
102
102
/// Registers a custom <see cref="ICommandLineOptionFormatter"/> to use to generate the help text.
103
103
/// </summary>
104
104
/// <param name="formatter">The custom formatter to use. This must not be <c>null</c>.</param>
@@ -137,15 +137,15 @@ public bool ShouldShowHelp(IEnumerable<ParsedOption> parsedOptions)
137
137
public void ShowHelp ( IEnumerable < ICommandLineOption > options )
138
138
{
139
139
if ( ReturnCallback != null )
140
- {
141
- var formattedOutput = this . OptionFormatter . Format ( options ) ;
142
- this . ReturnCallback ( formattedOutput ) ;
143
- }
144
-
145
- if ( ReturnCallbackWithoutParser != null )
146
- {
147
- this . ReturnCallbackWithoutParser ( ) ;
148
- }
140
+ {
141
+ var formattedOutput = this . OptionFormatter . Format ( options ) ;
142
+ this . ReturnCallback ( formattedOutput ) ;
143
+ }
144
+
145
+ if ( ReturnCallbackWithoutParser != null )
146
+ {
147
+ this . ReturnCallbackWithoutParser ( ) ;
148
+ }
149
149
}
150
150
}
151
151
}
0 commit comments