Skip to content

Commit fd4c927

Browse files
committed
Add XML documentation and IConsole.BackgroundColor
1 parent cbedfa2 commit fd4c927

13 files changed

+540
-43
lines changed

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
<BranchName Condition=" '$(BranchName)' == '' ">$(APPVEYOR_REPO_BRANCH)</BranchName>
2424
<VersionSuffix Condition="'$(BranchName)' != 'master'">alpha</VersionSuffix>
2525
<VersionSuffix Condition="'$(BranchName)' == 'master'">beta</VersionSuffix>
26+
<VersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'true'">rtm</VersionSuffix>
2627
<BuildNumber Condition=" '$(BuildNumber)' == '' ">$(APPVEYOR_BUILD_NUMBER)</BuildNumber>
2728
<BuildNumber Condition=" '$(BuildNumber)' == '' ">0</BuildNumber>
29+
<FileVersion>$(VersionPrefix).$(BuildNumber)</FileVersion>
2830
<VersionSuffix Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix).$(BuildNumber)</VersionSuffix>
29-
<VersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'true'"></VersionSuffix>
3031
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BranchName)' != '' ">$(VersionSuffix)+$(BranchName)</VersionSuffix>
32+
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true'">$(VersionPrefix)</PackageVersion>
3133
</PropertyGroup>
3234

3335
</Project>

src/CommandLineUtils/CommandArgument.cs

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,49 @@
66

77
namespace McMaster.Extensions.CommandLineUtils
88
{
9+
/// <summary>
10+
/// Represents one or many positional command line arguments.
11+
/// Arguments are parsed in the order in which <see cref="CommandLineApplication.Arguments"/> lists them.
12+
/// Compare to <seealso cref="CommandOption"/>.
13+
/// </summary>
914
public class CommandArgument
1015
{
16+
/// <summary>
17+
/// Initializes a new instance of <see cref="CommandArgument"/>.
18+
/// </summary>
1119
public CommandArgument()
1220
{
1321
Values = new List<string>();
1422
}
1523

24+
/// <summary>
25+
/// The name of the argument.
26+
/// </summary>
1627
public string Name { get; set; }
28+
29+
/// <summary>
30+
/// Determines if the argument appears in the generated help-text.
31+
/// </summary>
1732
public bool ShowInHelpText { get; set; } = true;
33+
34+
/// <summary>
35+
/// A description of the argument.
36+
/// </summary>
1837
public string Description { get; set; }
38+
39+
/// <summary>
40+
/// All values specified, if any.
41+
/// </summary>
1942
public List<string> Values { get; private set; }
43+
44+
/// <summary>
45+
/// Allow multiple values.
46+
/// </summary>
2047
public bool MultipleValues { get; set; }
21-
public string Value
22-
{
23-
get
24-
{
25-
return Values.FirstOrDefault();
26-
}
27-
}
48+
49+
/// <summary>
50+
/// The first value from <see cref="Values"/>, if any.
51+
/// </summary>
52+
public string Value => Values.FirstOrDefault();
2853
}
2954
}

0 commit comments

Comments
 (0)