Skip to content

Commit 61fa5ab

Browse files
committed
1 parent b620815 commit 61fa5ab

15 files changed

Lines changed: 289 additions & 255 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ src/tests/test-results/*
1818
*.DS_Store
1919
*.csproj.user
2020
TestResult.xml
21+
.nupkg
22+
*.old

CommandLine.FxCop

Lines changed: 209 additions & 209 deletions
Large diffs are not rendered by default.

CommandLine.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
Microsoft Visual Studio Solution File, Format Version 11.00
3-
# Visual Studio 2010
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
44
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLine", "src\libcmdline\CommandLine.csproj", "{5DEA2811-2FFA-4959-830B-CAD3ACACABEB}"
55
EndProject
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLine.Tests", "src\tests\CommandLine.Tests.csproj", "{86E1AC34-ED2D-4E42-8B95-65208FEA36C2}"

CommandLine.sln.DotSettings.user

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Command Line Parser Library 1.9.4.227 beta for CLR.
1+
Command Line Parser Library 1.9.4.229 beta 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
__The search for the command line parser for your application is over, with this library you got a solid parsing API constantly updated since 2005.__
@@ -98,6 +98,7 @@ Resources for newcomers:
9898

9999
Latest Changes:
100100
---
101+
- Fixed issue #15. Added OptionInfo::ReceivedValue to solve an issue in OptionMap::EnforceRequiredRule.
101102
- A strict overload ``ParseArguments(string[],object,TextWriter,int)`` has wrong name, renamed ``ParseArgumentsStrict(...)``.
102103
- Default singleton parsing culture is CultureInfo.InvariantCulture.
103104
- Added ``IParserSettings::ParsingCulture`` and ``ParserConfigurator::UseCulture``.

Rakefile.rb

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
PRODUCT = "Command Line Parser Library"
2-
DESCRIPTION = "Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments."
3-
VERSION = "1.9.4.227"
2+
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.4.229"
44
INF_VERSION = VERSION + "-beta"
5-
COPYRIGHT = "Copyright (c) 2005 - 2013 Giacomo Stelluti Scala"
5+
AUTHOR = "Giacomo Stelluti Scala"
6+
COPYRIGHT = "Copyright (c) 2005 - 2013 " + AUTHOR
67
LICENSE_URL = "https://raw.github.com/gsscoder/commandline/master/doc/LICENSE"
78
PROJECT_URL = "https://github.com/gsscoder/commandline"
89

@@ -25,6 +26,10 @@ def is_nix
2526
!RUBY_PLATFORM.match("linux|darwin").nil?
2627
end
2728

29+
def to_win_path(nix_path)
30+
nix_path.gsub("/", "\\")
31+
end
32+
2833
def invoke_runtime(cmd)
2934
command = cmd
3035
if is_nix()
@@ -37,7 +42,11 @@ def invoke_runtime(cmd)
3742
BUILD_DIR = File.expand_path("build")
3843
OUTPUT_DIR = "#{BUILD_DIR}/out"
3944
SOURCE_DIR = File.expand_path("src")
45+
NUGET_DIR = File.expand_path("nuget")
4046
LIB_DIR = "#{SOURCE_DIR}/libcmdline"
47+
PJ_OUTPUT_DIR ="#{LIB_DIR}/bin/Release"
48+
LIB_ASM = "CommandLine.dll"
49+
LIB_XML = "CommandLine.xml"
4150

4251
msbuild :build_msbuild do |b|
4352
b.properties :configuration => CONFIGURATION, "OutputPath" => OUTPUT_DIR
@@ -83,6 +92,27 @@ def invoke_runtime(cmd)
8392
a.namespaces "System.Runtime.CompilerServices", "System.Resources"
8493
end
8594

95+
nuspec :nuget_nuspec do |nuspec|
96+
nuspec.id = "CommandLineParser"
97+
nuspec.version = INF_VERSION.end_with?("stable") ? VERSION : INF_VERSION
98+
nuspec.authors = AUTHOR
99+
nuspec.owners = AUTHOR
100+
nuspec.description = DESCRIPTION
101+
nuspec.title = PRODUCT
102+
nuspec.projectUrl = PROJECT_URL
103+
nuspec.licenseUrl = LICENSE_URL
104+
nuspec.requireLicenseAcceptance = "false"
105+
nuspec.copyright = COPYRIGHT
106+
nuspec.tags = "command line argument option parser parsing library syntax shell"
107+
nuspec.iconUrl = "https://github.com/gsscoder/commandline/raw/master/art/CommandLine.png"
108+
109+
nuspec.file to_win_path("#{PJ_OUTPUT_DIR}/#{LIB_ASM}"), to_win_path("lib/#{LIB_ASM}")
110+
nuspec.file to_win_path("#{PJ_OUTPUT_DIR}/#{LIB_XML}"), to_win_path("lib/#{LIB_XML}")
111+
nuspec.file to_win_path("#{NUGET_DIR}/readme.txt"), "readme.txt"
112+
113+
nuspec.output_file = "#{NUGET_DIR}/CommandLine.nuspec"
114+
end
115+
86116
task :clean do
87117
FileUtils.rm_rf BUILD_DIR
88118
FileUtils.rm_rf "src/libcmdline/bin"

doc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-02-18 Giacomo Stelluti Scala <[email protected]>
2+
3+
* Added nuget_nuspec task to Rakefile.
4+
* Added OptionInfo::ReceivedValue to solve an issue in OptionMap::EnforceRequiredRule (see issue #15).
5+
16
2013-02-17 Giacomo Stelluti Scala <[email protected]>
27

38
* Fix: a strict overload ParseArguments(string[],object,TextWriter,int) has wrong name (oops);

doc/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Command Line Parser Library
33
Project Author/Coordinator: Giacomo Stelluti Scala
44
Main Contributor(s): Steven Evans, Kevin Moore, Dan Nemec (nemec), Alexander Fast (mizipzor)
55
--------------------------------------------------------------------------------------------
6-
Version 1.9.4.225 beta (*1)
7-
Latest Update: 2013-02-16
6+
Version 1.9.4.229 beta (*1)
7+
Latest Update: 2013-02-18
88

99
Git home:
1010
https://github.com/gsscoder/commandline

nuget/CommandLine.nuspec

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1 @@
1-
<?xml version="1.0"?>
2-
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3-
<metadata>
4-
<version>1.9.4.215-beta</version>
5-
<authors>Giacomo Stelluti Scala</authors>
6-
<owners>Giacomo Stelluti Scala</owners>
7-
<licenseUrl>https://github.com/gsscoder/commandline/blob/master/doc/LICENSE</licenseUrl>
8-
<projectUrl>https://github.com/gsscoder/commandline</projectUrl>
9-
<iconUrl>https://github.com/gsscoder/commandline/raw/master/art/CommandLine.png</iconUrl>
10-
<id>CommandLineParser</id>
11-
<title>Command Line Parser Library</title>
12-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13-
<description>The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.</description>
14-
<copyright>2005 - 2013 Giacomo Stelluti Scala</copyright>
15-
<tags>Command Line Parser</tags>
16-
</metadata>
17-
<files>
18-
<file src="lib\CommandLine.dll" target="lib\CommandLine.dll" />
19-
<file src="lib\CommandLine.XML" target="lib\CommandLine.XML" />
20-
<file src="readme.txt" target="readme.txt" />
21-
</files>
22-
</package>
1+
<?xml version='1.0'?><package xmlns='http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'><metadata><id>CommandLineParser</id><version>1.9.4.229-beta</version><title>Command Line Parser Library</title><authors>Giacomo Stelluti Scala</authors><description>The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.</description><releaseNotes/><copyright>Copyright (c) 2005 - 2013 Giacomo Stelluti Scala</copyright><licenseUrl>https://raw.github.com/gsscoder/commandline/master/doc/LICENSE</licenseUrl><projectUrl>https://github.com/gsscoder/commandline</projectUrl><owners>Giacomo Stelluti Scala</owners><iconUrl>https://github.com/gsscoder/commandline/raw/master/art/CommandLine.png</iconUrl><requireLicenseAcceptance>false</requireLicenseAcceptance><tags>command line argument option parser parsing library syntax shell</tags></metadata><files><file src='C:\Projects\CommandLine\src\libcmdline\bin\Release\CommandLine.dll' target='lib\CommandLine.dll'/><file src='C:\Projects\CommandLine\src\libcmdline\bin\Release\CommandLine.xml' target='lib\CommandLine.xml'/><file src='C:\Projects\CommandLine\nuget\readme.txt' target='readme.txt'/></files></package>
37.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)