Skip to content

Commit d03bd5f

Browse files
committed
untabify
1 parent 717c151 commit d03bd5f

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

FluentCommandLineParser/Internals/HelpCommandLineOption.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public HelpCommandLineOption(IEnumerable<string> helpArgs)
5454
/// </summary>
5555
internal Action<string> ReturnCallback { get; set; }
5656

57-
private Action ReturnCallbackWithoutParser { get; set; }
57+
private Action ReturnCallbackWithoutParser { get; set; }
5858

5959
/// <summary>
6060
/// Gets or sets any header to display at the top of the printed options.
@@ -84,21 +84,21 @@ public IHelpCommandLineOptionFluent Callback(Action<string> callback)
8484
return this;
8585
}
8686

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>
102102
/// Registers a custom <see cref="ICommandLineOptionFormatter"/> to use to generate the help text.
103103
/// </summary>
104104
/// <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)
137137
public void ShowHelp(IEnumerable<ICommandLineOption> options)
138138
{
139139
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+
}
149149
}
150150
}
151151
}

0 commit comments

Comments
 (0)