Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Perf_Parser_NestedCommands
///
/// 2 - cmd-root/
/// |-cmd-nested0
///
///
/// 5 - cmd-root/
/// |-cmd-nested0/
/// |-cmd-nested00/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class Perf_CommandLine_EntryPoint
/// </summary>
/// <param>....</param>
/// static int Main(int p1, string p2, bool p3) { return 0; }
/// }
/// }
/// }
/// </code>
/// </remarks>>
Expand Down
8 changes: 3 additions & 5 deletions src/System.CommandLine.DragonFruit/EntryPointDiscoverer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ public static MethodInfo FindStaticEntryMethod(

if (!string.IsNullOrWhiteSpace(entryPointFullTypeName))
{
var typeInfo = assembly.GetType(
entryPointFullTypeName,
false,
false
)?.GetTypeInfo();
var typeInfo = assembly
.GetType(entryPointFullTypeName, false, false)
?.GetTypeInfo();
if (typeInfo == null)
{
throw new InvalidProgramException(
Expand Down
6 changes: 2 additions & 4 deletions src/System.CommandLine.Rendering/TextSpanFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ public class TextSpanFormatter : ICustomFormatter, IFormatProvider
{
private static readonly Regex _formattableStringParser;

private readonly Dictionary<Type, Func<object, TextSpan>> _formatters = new Dictionary<
Type,
Func<object, TextSpan>
>();
private readonly Dictionary<Type, Func<object, TextSpan>> _formatters =
new Dictionary<Type, Func<object, TextSpan>>();

static TextSpanFormatter()
{
Expand Down
5 changes: 2 additions & 3 deletions src/System.CommandLine.Rendering/Views/TableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ public override IReadOnlyList<TItem> Items

private GridView Layout { get; } = new GridView();

private readonly List<ITableViewColumn<TItem>> _columns = new List<
ITableViewColumn<TItem>
>();
private readonly List<ITableViewColumn<TItem>> _columns =
new List<ITableViewColumn<TItem>>();
public IReadOnlyList<ITableViewColumn<TItem>> Columns => _columns;

public TableView()
Expand Down
6 changes: 2 additions & 4 deletions src/System.CommandLine/DirectiveCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ namespace System.CommandLine
{
internal class DirectiveCollection : IDirectiveCollection
{
private readonly Dictionary<string, List<string>> _directives = new Dictionary<
string,
List<string>
>();
private readonly Dictionary<string, List<string>> _directives =
new Dictionary<string, List<string>>();

public void Add(string name, string? value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine/IOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace System.CommandLine
{
/// <summary>
/// A symbol defining a named parameter and a value for that parameter.
/// A symbol defining a named parameter and a value for that parameter.
/// </summary>
public interface IOption : IIdentifierSymbol, IValueDescriptor
{
Expand Down
6 changes: 2 additions & 4 deletions src/System.CommandLine/Parsing/ParseOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ internal class ParseOperation
private readonly TokenizeResult _tokenizeResult;
private readonly CommandLineConfiguration _configuration;
private int _index;
private readonly Dictionary<IArgument, int> _argumentCounts = new Dictionary<
IArgument,
int
>();
private readonly Dictionary<IArgument, int> _argumentCounts =
new Dictionary<IArgument, int>();

public ParseOperation(TokenizeResult tokenizeResult, CommandLineConfiguration configuration)
{
Expand Down
2 changes: 2 additions & 0 deletions src/System.CommandLine/Parsing/ResponseFileHandling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ public enum ResponseFileHandling

// Each line in the file is treated as a single argument, regardless of whitespace on the line.
ParseArgsAsLineSeparated,

// Arguments are separated by whitespace (spaces and/or new-lines)
ParseArgsAsSpaceSeparated,

// Do not parse response files or treat arguments with &apos;@' as a response file
Disabled
}
Expand Down
4 changes: 2 additions & 2 deletions src/System.CommandLine/RootCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace System.CommandLine
/// Represents the main action that the application performs.
/// </summary>
/// <remarks>
/// Use the RootCommand object without any subcommands for applications that perform one action. Add subcommands
/// to the root for applications that require actions identified by specific strings. For example, `dir` does not
/// Use the RootCommand object without any subcommands for applications that perform one action. Add subcommands
/// to the root for applications that require actions identified by specific strings. For example, `dir` does not
/// use any subcommands. See <see cref="Command"/> for applications with multiple actions.
/// </remarks>
public class RootCommand : Command
Expand Down