Skip to content

Commit 2f5d513

Browse files
committed
KISS again, removed IParser.
1 parent 411be51 commit 2f5d513

10 files changed

Lines changed: 153 additions & 250 deletions

File tree

CommandLine.sln.DotSettings.user

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Command Line Parser Library 1.9.62.15 rc1 for CLR.
1+
Command Line Parser Library 1.9.69.1 rc2 for CLR.
22
===
33
The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks defining switches, options and verb commands. It allows you to display an help screen with an high degree of customization and a simple way to report syntax errors to the end user. Everything that is boring and repetitive to be programmed stands up on library shoulders, letting developers concentrate on core logic.
44
__This library provides _hassle free_ command line parsing with a constantly updated API since 2005.__

Rakefile.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PRODUCT = "Command Line Parser Library"
22
DESCRIPTION = "The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks."
3-
VERSION = "1.9.62.11"
4-
INF_VERSION = "1.9.62-rc1"
3+
VERSION = "1.9.69.1"
4+
INF_VERSION = "1.9.69-rc2"
55
AUTHOR = "Giacomo Stelluti Scala"
66
COPYRIGHT = "Copyright (c) 2005 - 2013 " + AUTHOR
77
LICENSE_URL = "https://raw.github.com/gsscoder/commandline/master/doc/LICENSE"

doc/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Removing IParserSettings, other superfluous abstraction.
77
* Applied KISS (keep it simple, stupid): removed nested ParserConfigurator in favor of
88
Parser(Action<ParserSettings>) new CommandLine.Parser ctor.
9+
* Second KISS, removed IParser.
910

1011
2013-02-23 Giacomo Stelluti Scala <[email protected]>
1112

doc/PublicAPI.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Public API Changes:
2121
- Version 1.9.6.1: Non breaking (if implicit syntax), reverting back genericity from IParser.
2222
- Version 1.9.61.1: Non breaking, omitting longname default -> property name lower case.
2323
- Version 1.9.62.2: 'Partially' breaking, ``IParserConfigurator`` made nested type of Parser; ``ParserConfigurator::HelpWriter(...)`` renamed to ``ParserConfigurator::UseHelpWriter(...)``.
24+
- Version 1.9.69.1: Breaking (in some cases), removed ``IParser``, ``IParserSettings`` and ``ParserConfigurator``.

src/SharedAssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
[assembly: AssemblyProduct("Command Line Parser Library")]
3030
[assembly: AssemblyCopyright("Copyright (c) 2005 - 2013 Giacomo Stelluti Scala")]
31-
[assembly: AssemblyVersion("1.9.62.15")]
32-
[assembly: AssemblyFileVersion("1.9.62.15")]
31+
[assembly: AssemblyVersion("1.9.69.1")]
32+
[assembly: AssemblyFileVersion("1.9.69.1")]
3333

34-
[assembly: AssemblyInformationalVersion("1.9.62-rc1")]
34+
[assembly: AssemblyInformationalVersion("1.9.62-rc2")]
3535
[assembly: NeutralResourcesLanguage("en-US")]

src/libcmdline/CommandLine.csproj

Lines changed: 138 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,146 +1,145 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3-
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>9.0.30729</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{5DEA2811-2FFA-4959-830B-CAD3ACACABEB}</ProjectGuid>
9-
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>CommandLine</RootNamespace>
12-
<AssemblyName>CommandLine</AssemblyName>
13-
<FileUpgradeFlags>
14-
</FileUpgradeFlags>
15-
<OldToolsVersion>3.5</OldToolsVersion>
16-
<UpgradeBackupLocation>
17-
</UpgradeBackupLocation>
18-
<IsWebBootstrapper>false</IsWebBootstrapper>
19-
<PublishUrl>publish\</PublishUrl>
20-
<Install>true</Install>
21-
<InstallFrom>Disk</InstallFrom>
22-
<UpdateEnabled>false</UpdateEnabled>
23-
<UpdateMode>Foreground</UpdateMode>
24-
<UpdateInterval>7</UpdateInterval>
25-
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
26-
<UpdatePeriodically>false</UpdatePeriodically>
27-
<UpdateRequired>false</UpdateRequired>
28-
<MapFileExtensions>true</MapFileExtensions>
29-
<ApplicationRevision>0</ApplicationRevision>
30-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
31-
<UseApplicationTrust>false</UseApplicationTrust>
32-
<BootstrapperEnabled>true</BootstrapperEnabled>
33-
</PropertyGroup>
34-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
35-
<DebugSymbols>true</DebugSymbols>
36-
<DebugType>full</DebugType>
37-
<Optimize>false</Optimize>
38-
<OutputPath>bin\Debug\</OutputPath>
39-
<DefineConstants>TRACE;DEBUG</DefineConstants>
40-
<ErrorReport>prompt</ErrorReport>
41-
<WarningLevel>4</WarningLevel>
42-
<DocumentationFile>bin\Debug\CommandLine.XML</DocumentationFile>
43-
</PropertyGroup>
44-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45-
<DebugType>pdbonly</DebugType>
46-
<Optimize>true</Optimize>
47-
<OutputPath>bin\Release\</OutputPath>
48-
<DefineConstants>
49-
</DefineConstants>
50-
<ErrorReport>prompt</ErrorReport>
51-
<WarningLevel>4</WarningLevel>
52-
<DocumentationFile>bin\Release\CommandLine.XML</DocumentationFile>
53-
<GenerateDocumentation>true</GenerateDocumentation>
54-
</PropertyGroup>
55-
<PropertyGroup>
56-
<SignAssembly>true</SignAssembly>
57-
</PropertyGroup>
58-
<PropertyGroup>
59-
<AssemblyOriginatorKeyFile>CommandLine.snk</AssemblyOriginatorKeyFile>
60-
</PropertyGroup>
61-
<ItemGroup>
62-
<Reference Include="System" />
63-
</ItemGroup>
64-
<ItemGroup>
65-
<Compile Include="..\SharedAssemblyInfo.cs">
66-
<Link>Properties\SharedAssemblyInfo.cs</Link>
67-
</Compile>
68-
<Compile Include="Attributes\BaseOptionAttribute.cs" />
69-
<Compile Include="Attributes\OptionAttribute.cs" />
70-
<Compile Include="Attributes\OptionArrayAttribute.cs" />
71-
<Compile Include="Attributes\HelpOptionAttribute.cs" />
72-
<Compile Include="Attributes\OptionListAttribute.cs" />
73-
<Compile Include="Attributes\ParserStateAttribute.cs" />
74-
<Compile Include="Attributes\ValueListAttribute.cs" />
75-
<Compile Include="Attributes\ValueOptionAttribute.cs" />
76-
<Compile Include="Extensions\CharExtensions.cs" />
77-
<Compile Include="GlobalSuppressions.cs" />
78-
<Compile Include="Infrastructure\PropertyWriter.cs" />
79-
<Compile Include="Infrastructure\SR.strings.cs">
80-
<AutoGen>True</AutoGen>
81-
<DesignTime>True</DesignTime>
82-
<DependentUpon>SR.tt</DependentUpon>
83-
</Compile>
84-
<Compile Include="Helpers\Assumes.cs" />
85-
<Compile Include="Helpers\ReflectionCache.cs" />
86-
<Compile Include="Extensions\StringExtensions.cs" />
87-
<Compile Include="Helpers\ReflectionUtil.cs" />
88-
<Compile Include="Helpers\Pair.cs" />
89-
<Compile Include="Infrastructure\ValueMapper.cs" />
90-
<Compile Include="Infrastructure\LongOptionParser.cs" />
91-
<Compile Include="Infrastructure\OptionGroupParser.cs" />
92-
<Compile Include="Infrastructure\OptionInfo.cs" />
93-
<Compile Include="Infrastructure\OptionMap.cs" />
94-
<Compile Include="Infrastructure\OneCharStringEnumerator.cs" />
95-
<Compile Include="Infrastructure\StringArrayEnumerator.cs" />
96-
<Compile Include="Infrastructure\ArgumentParser.cs" />
97-
<Compile Include="Infrastructure\IArgumentEnumerator.cs" />
98-
<Compile Include="Infrastructure\PresentParserState.cs" />
99-
<Compile Include="Properties\AssemblyInfo.cs" />
100-
<Compile Include="Text\HelpText.cs" />
101-
<Compile Include="Text\BaseSentenceBuilder.cs" />
102-
<Compile Include="Text\EnglishSentenceBuilder.cs" />
103-
<Compile Include="Text\CopyrightInfo.cs" />
104-
<Compile Include="Text\HeadingInfo.cs" />
105-
<Compile Include="Attributes\MultiLineTextAttribute.cs" />
106-
<Compile Include="Attributes\AssemblyLicenseAttribute.cs" />
107-
<Compile Include="Attributes\AssemblyUsageAttribute.cs" />
108-
<Compile Include="Text\FormatOptionHelpTextEventArgs.cs" />
109-
<Compile Include="Attributes\HelpVerbOptionAttribute.cs" />
110-
<Compile Include="Attributes\VerbOptionAttribute.cs" />
111-
<Compile Include="BadOptionInfo.cs" />
112-
<Compile Include="Parser.cs" />
113-
<Compile Include="ParserException.cs" />
114-
<Compile Include="ParserSettings.cs" />
115-
<Compile Include="IParser.cs" />
116-
<Compile Include="IParserState.cs" />
117-
<Compile Include="ParserState.cs" />
118-
<Compile Include="ParsingError.cs" />
119-
<Compile Include="Extensions\ObjectExtensions.cs" />
120-
</ItemGroup>
121-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>9.0.30729</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{5DEA2811-2FFA-4959-830B-CAD3ACACABEB}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>CommandLine</RootNamespace>
12+
<AssemblyName>CommandLine</AssemblyName>
13+
<FileUpgradeFlags>
14+
</FileUpgradeFlags>
15+
<OldToolsVersion>3.5</OldToolsVersion>
16+
<UpgradeBackupLocation>
17+
</UpgradeBackupLocation>
18+
<IsWebBootstrapper>false</IsWebBootstrapper>
19+
<PublishUrl>publish\</PublishUrl>
20+
<Install>true</Install>
21+
<InstallFrom>Disk</InstallFrom>
22+
<UpdateEnabled>false</UpdateEnabled>
23+
<UpdateMode>Foreground</UpdateMode>
24+
<UpdateInterval>7</UpdateInterval>
25+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
26+
<UpdatePeriodically>false</UpdatePeriodically>
27+
<UpdateRequired>false</UpdateRequired>
28+
<MapFileExtensions>true</MapFileExtensions>
29+
<ApplicationRevision>0</ApplicationRevision>
30+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
31+
<UseApplicationTrust>false</UseApplicationTrust>
32+
<BootstrapperEnabled>true</BootstrapperEnabled>
33+
</PropertyGroup>
34+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
35+
<DebugSymbols>true</DebugSymbols>
36+
<DebugType>full</DebugType>
37+
<Optimize>false</Optimize>
38+
<OutputPath>bin\Debug\</OutputPath>
39+
<DefineConstants>TRACE;DEBUG</DefineConstants>
40+
<ErrorReport>prompt</ErrorReport>
41+
<WarningLevel>4</WarningLevel>
42+
<DocumentationFile>bin\Debug\CommandLine.XML</DocumentationFile>
43+
</PropertyGroup>
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45+
<DebugType>pdbonly</DebugType>
46+
<Optimize>true</Optimize>
47+
<OutputPath>bin\Release\</OutputPath>
48+
<DefineConstants>
49+
</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
<DocumentationFile>bin\Release\CommandLine.XML</DocumentationFile>
53+
<GenerateDocumentation>true</GenerateDocumentation>
54+
</PropertyGroup>
55+
<PropertyGroup>
56+
<SignAssembly>true</SignAssembly>
57+
</PropertyGroup>
58+
<PropertyGroup>
59+
<AssemblyOriginatorKeyFile>CommandLine.snk</AssemblyOriginatorKeyFile>
60+
</PropertyGroup>
61+
<ItemGroup>
62+
<Reference Include="System" />
63+
</ItemGroup>
64+
<ItemGroup>
65+
<Compile Include="..\SharedAssemblyInfo.cs">
66+
<Link>Properties\SharedAssemblyInfo.cs</Link>
67+
</Compile>
68+
<Compile Include="Attributes\BaseOptionAttribute.cs" />
69+
<Compile Include="Attributes\OptionAttribute.cs" />
70+
<Compile Include="Attributes\OptionArrayAttribute.cs" />
71+
<Compile Include="Attributes\HelpOptionAttribute.cs" />
72+
<Compile Include="Attributes\OptionListAttribute.cs" />
73+
<Compile Include="Attributes\ParserStateAttribute.cs" />
74+
<Compile Include="Attributes\ValueListAttribute.cs" />
75+
<Compile Include="Attributes\ValueOptionAttribute.cs" />
76+
<Compile Include="Extensions\CharExtensions.cs" />
77+
<Compile Include="GlobalSuppressions.cs" />
78+
<Compile Include="Infrastructure\PropertyWriter.cs" />
79+
<Compile Include="Infrastructure\SR.strings.cs">
80+
<AutoGen>True</AutoGen>
81+
<DesignTime>True</DesignTime>
82+
<DependentUpon>SR.tt</DependentUpon>
83+
</Compile>
84+
<Compile Include="Helpers\Assumes.cs" />
85+
<Compile Include="Helpers\ReflectionCache.cs" />
86+
<Compile Include="Extensions\StringExtensions.cs" />
87+
<Compile Include="Helpers\ReflectionUtil.cs" />
88+
<Compile Include="Helpers\Pair.cs" />
89+
<Compile Include="Infrastructure\ValueMapper.cs" />
90+
<Compile Include="Infrastructure\LongOptionParser.cs" />
91+
<Compile Include="Infrastructure\OptionGroupParser.cs" />
92+
<Compile Include="Infrastructure\OptionInfo.cs" />
93+
<Compile Include="Infrastructure\OptionMap.cs" />
94+
<Compile Include="Infrastructure\OneCharStringEnumerator.cs" />
95+
<Compile Include="Infrastructure\StringArrayEnumerator.cs" />
96+
<Compile Include="Infrastructure\ArgumentParser.cs" />
97+
<Compile Include="Infrastructure\IArgumentEnumerator.cs" />
98+
<Compile Include="Infrastructure\PresentParserState.cs" />
99+
<Compile Include="Properties\AssemblyInfo.cs" />
100+
<Compile Include="Text\HelpText.cs" />
101+
<Compile Include="Text\BaseSentenceBuilder.cs" />
102+
<Compile Include="Text\EnglishSentenceBuilder.cs" />
103+
<Compile Include="Text\CopyrightInfo.cs" />
104+
<Compile Include="Text\HeadingInfo.cs" />
105+
<Compile Include="Attributes\MultiLineTextAttribute.cs" />
106+
<Compile Include="Attributes\AssemblyLicenseAttribute.cs" />
107+
<Compile Include="Attributes\AssemblyUsageAttribute.cs" />
108+
<Compile Include="Text\FormatOptionHelpTextEventArgs.cs" />
109+
<Compile Include="Attributes\HelpVerbOptionAttribute.cs" />
110+
<Compile Include="Attributes\VerbOptionAttribute.cs" />
111+
<Compile Include="BadOptionInfo.cs" />
112+
<Compile Include="Parser.cs" />
113+
<Compile Include="ParserException.cs" />
114+
<Compile Include="ParserSettings.cs" />
115+
<Compile Include="IParserState.cs" />
116+
<Compile Include="ParserState.cs" />
117+
<Compile Include="ParsingError.cs" />
118+
<Compile Include="Extensions\ObjectExtensions.cs" />
119+
</ItemGroup>
120+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
122121
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
123122
Other similar extension points exist, see Microsoft.Common.targets.
124123
<Target Name="BeforeBuild">
125124
</Target>
126125
<Target Name="AfterBuild">
127126
</Target>
128-
-->
129-
<ItemGroup>
130-
<None Include="CommandLine.snk" />
131-
<None Include="Infrastructure\SR.tt">
132-
<Generator>TextTemplatingFileGenerator</Generator>
133-
<LastGenOutput>SR.strings.cs</LastGenOutput>
134-
</None>
135-
</ItemGroup>
136-
<ItemGroup>
137-
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
138-
</ItemGroup>
139-
<ItemGroup>
140-
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
141-
</ItemGroup>
142-
<PropertyGroup>
143-
<PreBuildEvent>
144-
</PreBuildEvent>
145-
</PropertyGroup>
127+
-->
128+
<ItemGroup>
129+
<None Include="CommandLine.snk" />
130+
<None Include="Infrastructure\SR.tt">
131+
<Generator>TextTemplatingFileGenerator</Generator>
132+
<LastGenOutput>SR.strings.cs</LastGenOutput>
133+
</None>
134+
</ItemGroup>
135+
<ItemGroup>
136+
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
137+
</ItemGroup>
138+
<ItemGroup>
139+
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
140+
</ItemGroup>
141+
<PropertyGroup>
142+
<PreBuildEvent>
143+
</PreBuildEvent>
144+
</PropertyGroup>
146145
</Project>

0 commit comments

Comments
 (0)