Skip to content

Commit 726655e

Browse files
Rename to ValueSymbol
1 parent acc2446 commit 726655e

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/System.CommandLine/CliArgument.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Foundation and contributors. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using System.Collections.Generic;
54
using System.CommandLine.Binding;
65
using System.CommandLine.Parsing;
76

@@ -10,7 +9,7 @@ namespace System.CommandLine
109
/// <summary>
1110
/// A symbol defining a value that can be passed on the command line to a <see cref="CliCommand">command</see> or <see cref="CliOption">option</see>.
1211
/// </summary>
13-
public abstract class CliArgument : CliDataSymbol
12+
public abstract class CliArgument : CliValueSymbol
1413
{
1514
private ArgumentArity _arity;
1615
// TODO: custom parser, completion, validators

src/System.CommandLine/CliOption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace System.CommandLine
1010
/// <summary>
1111
/// A symbol defining a named parameter and a value for that parameter.
1212
/// </summary>
13-
public abstract class CliOption : CliDataSymbol
13+
public abstract class CliOption : CliValueSymbol
1414
{
1515
internal AliasSet? _aliases;
1616
/*

src/System.CommandLine/CliDataSymbol.cs renamed to src/System.CommandLine/CliValueSymbol.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
namespace System.CommandLine;
55

6-
public abstract class CliDataSymbol : CliSymbol
6+
public abstract class CliValueSymbol : CliSymbol
77
{
8-
protected CliDataSymbol(string name, bool allowWhitespace = false)
8+
protected CliValueSymbol(string name, bool allowWhitespace = false)
99
: base(name, allowWhitespace)
1010
{ }
1111

src/System.CommandLine/System.CommandLine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<Compile Include="AliasSet.cs" />
2828
<Compile Include="ArgumentArity.cs" />
2929
<Compile Include="Binding\ArgumentConversionResult.cs" />
30-
<Compile Include="CliDataSymbol.cs" />
30+
<Compile Include="CliValueSymbol.cs" />
3131
<Compile Include="Parsing\CommandValueResult.cs" />
3232
<Compile Include="Parsing\SymbolLookupByName.cs" />
3333
<Compile Include="Parsing\ValueResultOutcome.cs" />

0 commit comments

Comments
 (0)