diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets
deleted file mode 100644
index a86be3a1..00000000
--- a/.paket/Paket.Restore.targets
+++ /dev/null
@@ -1,272 +0,0 @@
-
-
-
-
-
-
- $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
-
- true
- $(MSBuildThisFileDirectory)
- $(MSBuildThisFileDirectory)..\
- $(PaketRootPath)paket-files\paket.restore.cached
- $(PaketRootPath)paket.lock
- /Library/Frameworks/Mono.framework/Commands/mono
- mono
-
- $(PaketRootPath)paket.exe
- $(PaketToolsPath)paket.exe
- "$(PaketExePath)"
- $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"
-
-
- <_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)"))
- dotnet "$(PaketExePath)"
-
- $(PaketRootPath)paket.bootstrapper.exe
- $(PaketToolsPath)paket.bootstrapper.exe
- "$(PaketBootStrapperExePath)"
- $(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)"
-
-
-
-
- true
- true
-
-
-
-
-
-
- true
- $(NoWarn);NU1603
-
-
-
-
- /usr/bin/shasum $(PaketRestoreCacheFile) | /usr/bin/awk '{ print $1 }'
- /usr/bin/shasum $(PaketLockFilePath) | /usr/bin/awk '{ print $1 }'
-
-
-
-
-
-
-
-
-
-
-
-
- $([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))
- $([System.IO.File]::ReadAllText('$(PaketLockFilePath)'))
- true
- false
- true
-
-
-
-
-
-
-
-
- $(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached
-
- $(MSBuildProjectFullPath).paket.references
-
- $(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references
-
- $(MSBuildProjectDirectory)\paket.references
- $(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).$(TargetFramework).paket.resolved
- true
- references-file-or-cache-not-found
-
-
-
-
- $([System.IO.File]::ReadAllText('$(PaketReferencesCachedFilePath)'))
- $([System.IO.File]::ReadAllText('$(PaketOriginalReferencesFilePath)'))
- references-file
- false
-
-
-
-
- false
-
-
-
-
- true
- target-framework '$(TargetFramework)'
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])
- $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])
- $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])
-
-
- %(PaketReferencesFileLinesInfo.PackageVersion)
- All
-
-
-
-
- $(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools
-
-
-
-
-
-
-
-
- $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0])
- $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1])
-
-
- %(PaketCliToolFileLinesInfo.PackageVersion)
-
-
-
-
- $(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config
-
-
-
-
-
-
- false
-
-
-
-
-
- <_NuspecFilesNewLocation Include="$(BaseIntermediateOutputPath)$(Configuration)\*.nuspec"/>
-
-
-
- $(MSBuildProjectDirectory)/$(MSBuildProjectFile)
- true
- false
- true
- $(BaseIntermediateOutputPath)$(Configuration)
- $(BaseIntermediateOutputPath)
-
-
-
- <_NuspecFiles Include="$(AdjustedNuspecOutputPath)\*.nuspec"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.paket/paket.bootstrapper.exe b/.paket/paket.bootstrapper.exe
deleted file mode 100644
index b98e000b..00000000
Binary files a/.paket/paket.bootstrapper.exe and /dev/null differ
diff --git a/CommandLine.nuspec b/CommandLine.nuspec
deleted file mode 100644
index 86eb1a0c..00000000
--- a/CommandLine.nuspec
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
- CommandLineParser
- $version$
- Command Line Parser Library
- gsscoder nemec ericnewton76
- Terse syntax C# command line parser for .NET. For FSharp support see CommandLineParser.FSharp. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
-
- Copyright (c) 2005 - 2018 Giacomo Stelluti Scala & Contributors
- https://github.com/commandlineparser/commandline/blob/master/License.md
- https://github.com/commandlineparser/commandline
- Giacomo Stelluti Scala
- https://raw.githubusercontent.com/commandlineparser/commandline/master/art/CommandLine20.png
- false
- command line commandline argument option parser parsing library syntax shell
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CommandLine.sln b/CommandLine.sln
index 76c37ff2..06356a14 100644
--- a/CommandLine.sln
+++ b/CommandLine.sln
@@ -1,26 +1,10 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
+# Visual Studio 15
+VisualStudioVersion = 15.0.27703.2042
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLine", "src\CommandLine\CommandLine.csproj", "{E1BD3C65-49C3-49E7-BABA-C60980CB3F20}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Welcome", ".Welcome", "{D9C1F005-94A7-4A2A-81F3-9C053D5A6AEC}"
- ProjectSection(SolutionItems) = preProject
- License.md = License.md
- README.md = README.md
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FSharp", "FSharp", "{751E6303-1623-4418-B298-4FF97DA5C86E}"
- ProjectSection(SolutionItems) = preProject
- demo\fsharp-demo.fsx = demo\fsharp-demo.fsx
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A6C99AE7-2FE1-4393-9281-7BFCF46A6F53}"
- ProjectSection(SolutionItems) = preProject
- build.fsx = build.fsx
- EndProjectSection
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLine.Tests", "tests\CommandLine.Tests\CommandLine.Tests.csproj", "{0A15C4D2-B3E9-43AB-8155-1B39F7AC8A5E}"
EndProject
Global
@@ -41,6 +25,9 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {5B5A476C-82FB-49FB-B592-5224D9005186}
+ EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = src\CommandLine\CommandLine.csproj
EndGlobalSection
diff --git a/CommandLine.sln.DotSettings b/CommandLine.sln.DotSettings
deleted file mode 100644
index e418e867..00000000
--- a/CommandLine.sln.DotSettings
+++ /dev/null
@@ -1,4 +0,0 @@
-
- <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" />
- <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" />
- <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" />
\ No newline at end of file
diff --git a/Commandline.FSharp.nuspec b/Commandline.FSharp.nuspec
deleted file mode 100644
index b08c9b35..00000000
--- a/Commandline.FSharp.nuspec
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- CommandLineParser.FSharp
- $version$
- Command Line Parser Library
- gsscoder nemec ericnewton76
- Terse syntax C# command line parser for .NET with F# support. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
-
- Copyright (c) 2005 - 2018 Giacomo Stelluti Scala & Contributors
- https://github.com/commandlineparser/commandline/blob/master/License.md
- https://github.com/commandlineparser/commandline
- Giacomo Stelluti Scala
- https://raw.githubusercontent.com/commandlineparser/commandline/master/art/CommandLine20.png
- false
- command line commandline argument option parser parsing library syntax shell
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/README.md b/README.md
index c38ed7d0..fb10ea07 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ class Options
public bool Verbose { get; set; }
[Option("stdin",
- Default = false
+ Default = false,
HelpText = "Read from stdin")]
public bool stdin { get; set; }
diff --git a/appveyor.yml b/appveyor.yml
index 255504e9..7069584a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,14 +1,10 @@
-#version should be changed with any pull requests
-version: 2.2.{build}
+#version should be only changed with RELEASE eminent, see RELEASE.md
+version: 2.3.{build}
clone_depth: 1
pull_requests:
do_not_increment_build_number: true
-#cache:
-#- packages -> paket.dependencies
-#- paket-files > paket.dependencies
-
init:
- ps: |
git config --global core.autocrlf input
@@ -18,49 +14,23 @@ init:
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) }
Update-AppveyorBuild -Version $ver
}
- elseif([System.String]::IsNullOrEmpty($env:APPVEYOR_PULL_REQUEST_NUMBER) -eq $true) {
- $ver = $env:APPVEYOR_BUILD_VERSION
- $commit = $env:APPVEYOR_REPO_COMMIT.substring(0,7)
- Update-AppveyorBuild -Version "$ver-$commit"
- }
-
-#version patching
-assembly_info:
- file: src\SharedAssemblyInfo.cs
- patch: true
- assembly_version: '{version}'
- assembly_file_version: '{version}'
- assembly_informational_version: $(APPVEYOR_BUILD_VERSION)
-dotnet_csproj:
- patch: true
- file: '**\*.csproj'
- version: '{version}'
- package_version: '{version}'
- assembly_version: '{version}'
- file_version: '{version}'
- informational_version: '{version}'
-
environment:
matrix:
- BUILD_TARGET: base
- NUSPEC_FILE: CommandLine
- BUILD_TARGET: fsharp
- NUSPEC_FILE: CommandLine.FSharp
build_script:
- - cmd: build.cmd %BUILD_TARGET%
+- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
-after_build:
-- ps: |
- powershell get-childitem Release\* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Path, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
-
- .\build-nuget-pack.cmd $env:BUILD_TARGET $env:NUSPEC_FILE
+test_script:
+- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET%
-test: auto
+after_test:
+- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
artifacts:
-- path: 'Release/**/*.nupkg'
+- path: 'src/CommandLine/bin/Release/*.nupkg'
name: NugetPackages
on_failure:
@@ -74,6 +44,5 @@ deploy:
secure: +Zxb8M5W+UJV1yd9n8seu3PvH/hGNPEmgriGBnsSmtxjKPQAJ4+iL7tKAmfPHAuG
artifact: 'NuGetPackages'
on:
- branch: /master|v\d+\.\d+\.\d+[.*]/
APPVEYOR_REPO_TAG: true
diff --git a/build-nuget-pack.cmd b/build-nuget-pack.cmd
deleted file mode 100644
index ef3af1f2..00000000
--- a/build-nuget-pack.cmd
+++ /dev/null
@@ -1,19 +0,0 @@
-@ECHO OFF
-setlocal
-
-if "%1" == "" goto :USAGE
-if "%2" == "" goto :USAGE
-
-pushd Release\%1
-
-copy ..\..\README.md
-copy ..\..\%2.nuspec .
-nuget pack "%2.nuspec" -properties Version=%APPVEYOR_BUILD_VERSION%
-if errorlevel 1 popd&exit 1 /b
-goto :END
-
-:USAGE
-echo build-nuget-pack
-
-:END
-popd
diff --git a/build.cmd b/build.cmd
deleted file mode 100644
index 595b806e..00000000
--- a/build.cmd
+++ /dev/null
@@ -1,49 +0,0 @@
-@echo off
-setlocal
-
-cls
-
-if "%1" == "" goto :USAGE
-if "%1" == "base" set BUILD_TARGET=base
-if "%1" == "fsharp" set BUILD_TARGET=fsharp
-
-echo.
-echo SKIP_RESTORE=%SKIP_RESTORE% ^<^< Set to true if have already restored packages
-if "%SKIP_RESTORE%" == "" choice /T 5 /D Y /M "Continue?"
-
-if "%SKIP_RESTORE%" == "true" goto :BUILD_NET
-.paket\paket.bootstrapper.exe
-if errorlevel 1 (
- exit /b %errorlevel%
-)
-
-.paket\paket.exe restore
-if errorlevel 1 (
- exit /b %errorlevel%
-)
-
-:BUILD_NET
-echo.
-
-msbuild CommandLine.sln /p:Configuration=Release /p:OutputPath=%~dp0\release\%BUILD_TARGET%\net4x
-
-if "%SKIP_RESTORE%" == "true" goto :BUILD_NETSTD
-echo.
-echo dotnet restore
-dotnet restore
-
-:BUILD_NETSTD
-echo.
-echo dotnet build --output %~dp0\release\%BUILD_TARGET%\netstandard1.5
-dotnet build --configuration Release --output %~dp0release\%BUILD_TARGET%\netstandard1.5 --framework netstandard1.5 src\commandline
-
-goto :END
-
-:USAGE
-echo.
-echo Invalid arguments specified.
-echo.
-echo Usage: build
-echo where is base or fsharp
-
-:END
diff --git a/build.fsx b/build.fsx
deleted file mode 100644
index 7ef072f0..00000000
--- a/build.fsx
+++ /dev/null
@@ -1,47 +0,0 @@
-#r "packages/FAKE/tools/FakeLib.dll"
-open Fake
-open Fake.Testing
-
-let buildDir = "./build/"
-let testDir = "./build/test/"
-let packagingDir = "./nuget/"
-
-let authors = ["Giacomo Stelluti Scala"]
-let projectDescription = "The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks."
-let projectSummary = "Command Line Parser Library"
-let buildVersion = "2.2.0.0"
-
-Target "Clean" (fun _ ->
- CleanDirs [buildDir; testDir]
-)
-
-Target "Default" (fun _ ->
- trace "Command Line Parser Library 2.0 pre-release"
-)
-
-Target "BuildLib" (fun _ ->
- !! "src/CommandLine/CommandLine.csproj"
- |> MSBuildRelease buildDir "Build"
- |> Log "LibBuild-Output: "
-)
-
-Target "BuildTest" (fun _ ->
- !! "tests/CommandLine.Tests/CommandLine.Tests.csproj"
- |> MSBuildDebug testDir "Build"
- |> Log "TestBuild-Output: "
-)
-
-Target "Test" (fun _ ->
- //trace "Running Tests..."
- !! (testDir @@ "\CommandLine.Tests.dll")
- |> xUnit2 (fun p -> {p with HtmlOutputPath = Some(testDir @@ "xunit.html")})
-)
-
-// Dependencies
-"Clean"
- ==> "BuildLib"
- ==> "BuildTest"
- ==> "Test"
- ==> "Default"
-
-RunTargetOrDefault "Default"
diff --git a/build.sh b/build.sh
deleted file mode 100755
index 83c11f4c..00000000
--- a/build.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-if test "$OS" = "Windows_NT"
-then
- # use .Net
-
- .paket/paket.bootstrapper.exe
- exit_code=$?
- if [ $exit_code -ne 0 ]; then
- exit $exit_code
- fi
-
- .paket/paket.exe restore
- exit_code=$?
- if [ $exit_code -ne 0 ]; then
- exit $exit_code
- fi
-
- packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
-else
- # use mono
- mono .paket/paket.bootstrapper.exe
- exit_code=$?
- if [ $exit_code -ne 0 ]; then
- exit $exit_code
- fi
-
- mono .paket/paket.exe restore
- exit_code=$?
- if [ $exit_code -ne 0 ]; then
- exit $exit_code
- fi
- mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
-fi
-
-dotnet build --configuration Release
diff --git a/global.json b/global.json
deleted file mode 100644
index f83a8f81..00000000
--- a/global.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "projects": [
- "src",
- "tests"
- ],
- "sdk": {
- "version": "1.0.0-preview2-003121"
- }
-}
diff --git a/paket.dependencies b/paket.dependencies
deleted file mode 100644
index b59d342c..00000000
--- a/paket.dependencies
+++ /dev/null
@@ -1,14 +0,0 @@
-source https://nuget.org/api/v2
-
-nuget FAKE
-nuget FSharp.Core
-nuget FluentAssertions
-nuget xunit
-nuget xunit.runner.visualstudio version_in_path: true
-nuget xunit.runner.console
-nuget FSharp.Formatting
-nuget FsCheck
-
-github gsscoder/CSharpx src/CSharpx/Maybe.cs
-github gsscoder/CSharpx src/CSharpx/EnumerableExtensions.cs
-github gsscoder/railwaysharp src/RailwaySharp/ErrorHandling.cs
diff --git a/paket.lock b/paket.lock
deleted file mode 100644
index a2282355..00000000
--- a/paket.lock
+++ /dev/null
@@ -1,240 +0,0 @@
-NUGET
- remote: https://www.nuget.org/api/v2
- FAKE (4.3.4)
- FluentAssertions (4.0)
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0.10) - framework: dnxcore50
- System.Linq (>= 4.0) - framework: dnxcore50
- System.Linq.Expressions (>= 4.0.10) - framework: dnxcore50
- System.ObjectModel (>= 4.0.10) - framework: dnxcore50
- System.Reflection (>= 4.0.10) - framework: dnxcore50
- System.Reflection.Extensions (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Reflection.TypeExtensions (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Text.RegularExpressions (>= 4.0.10) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0.10) - framework: dnxcore50
- System.Xml.XDocument (>= 4.0.10) - framework: dnxcore50
- FsCheck (2.0.7)
- FSharp.Core (>= 3.1.2.5)
- FSharp.Compiler.Service (1.4.0.1)
- FSharp.Core (4.0.0.1)
- FSharp.Formatting (2.10)
- FSharp.Compiler.Service (>= 0.0.87)
- FSharpVSPowerTools.Core (1.8)
- FSharpVSPowerTools.Core (1.8)
- FSharp.Compiler.Service (>= 0.0.87)
- System.Collections (4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0) - framework: dnxcore50
- System.Threading (>= 4.0) - framework: dnxcore50
- System.Diagnostics.Contracts (4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Diagnostics.Debug (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Globalization (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.IO (4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Text.Encoding (>= 4.0) - framework: dnxcore50
- System.Text.Encoding (>= 4.0.10) - framework: dnxcore50
- System.Text.Encoding.Extensions (>= 4.0) - framework: dnxcore50
- System.Threading (>= 4.0) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0) - framework: dnxcore50
- System.IO.FileSystem (4.0) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.IO (>= 4.0) - framework: dnxcore50
- System.IO (>= 4.0.10) - framework: dnxcore50
- System.IO.FileSystem.Primitives (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Runtime.Handles (>= 4.0) - framework: dnxcore50
- System.Runtime.InteropServices (>= 4.0.20) - framework: dnxcore50
- System.Runtime.WindowsRuntime (>= 4.0) - framework: dnxcore50
- System.Text.Encoding (>= 4.0) - framework: dnxcore50
- System.Text.Encoding (>= 4.0.10) - framework: dnxcore50
- System.Text.Encoding.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Threading.Overlapped (>= 4.0) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0.10) - framework: dnxcore50
- System.IO.FileSystem.Primitives (4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Linq (4.0) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Linq.Expressions (4.0.10) - framework: dnxcore50
- System.Collections (>= 4.0) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0) - framework: dnxcore50
- System.Globalization (>= 4.0) - framework: dnxcore50
- System.IO (>= 4.0) - framework: dnxcore50
- System.Linq (>= 4.0) - framework: dnxcore50
- System.ObjectModel (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection.Emit (>= 4.0) - framework: dnxcore50
- System.Reflection.Extensions (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Reflection.TypeExtensions (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0) - framework: dnxcore50
- System.Threading (>= 4.0) - framework: dnxcore50
- System.ObjectModel (4.0.10) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Private.Uri (4.0) - framework: dnxcore50
- System.Reflection (4.0.10) - framework: dnxcore50
- System.IO (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Reflection.Emit (4.0) - framework: dnxcore50
- System.IO (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection.Emit.ILGeneration (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Reflection.Emit.ILGeneration (4.0) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Reflection.Extensions (4.0) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0.10) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Reflection.TypeExtensions (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Reflection.Primitives (4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Threading (>= 4.0) - framework: dnxcore50
- System.Reflection.TypeExtensions (4.0) - framework: dnxcore50
- System.Diagnostics.Contracts (>= 4.0) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Linq (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0.10) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Resources.ResourceManager (4.0) - framework: dnxcore50
- System.Globalization (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection (>= 4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime (4.0.20) - framework: dnxcore50
- System.Private.Uri (>= 4.0) - framework: dnxcore50
- System.Runtime.Extensions (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Handles (4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime.InteropServices (4.0.20) - framework: dnxcore50
- System.Reflection (>= 4.0) - framework: dnxcore50
- System.Reflection.Primitives (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime.Handles (>= 4.0) - framework: dnxcore50
- System.Runtime.WindowsRuntime (4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0) - framework: dnxcore50
- System.IO (>= 4.0) - framework: dnxcore50
- System.IO (>= 4.0.10) - framework: dnxcore50
- System.ObjectModel (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0) - framework: dnxcore50
- System.Runtime.InteropServices (>= 4.0.20) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0.10) - framework: dnxcore50
- System.Text.Encoding (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Text.Encoding.Extensions (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Text.Encoding (>= 4.0.10) - framework: dnxcore50
- System.Text.RegularExpressions (4.0.10) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0.10) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Threading (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0) - framework: dnxcore50
- System.Threading.Overlapped (4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0) - framework: dnxcore50
- System.Runtime.Handles (>= 4.0) - framework: dnxcore50
- System.Runtime.InteropServices (>= 4.0.20) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Threading.Tasks (4.0.10) - framework: dnxcore50
- System.Runtime (>= 4.0) - framework: dnxcore50
- System.Xml.ReaderWriter (4.0.10) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0.10) - framework: dnxcore50
- System.IO (>= 4.0.10) - framework: dnxcore50
- System.IO.FileSystem (>= 4.0) - framework: dnxcore50
- System.IO.FileSystem.Primitives (>= 4.0) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Runtime.InteropServices (>= 4.0.20) - framework: dnxcore50
- System.Text.Encoding (>= 4.0.10) - framework: dnxcore50
- System.Text.Encoding.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Text.RegularExpressions (>= 4.0.10) - framework: dnxcore50
- System.Threading.Tasks (>= 4.0.10) - framework: dnxcore50
- System.Xml.XDocument (4.0.10) - framework: dnxcore50
- System.Collections (>= 4.0.10) - framework: dnxcore50
- System.Diagnostics.Debug (>= 4.0.10) - framework: dnxcore50
- System.Globalization (>= 4.0.10) - framework: dnxcore50
- System.IO (>= 4.0.10) - framework: dnxcore50
- System.Reflection (>= 4.0.10) - framework: dnxcore50
- System.Resources.ResourceManager (>= 4.0) - framework: dnxcore50
- System.Runtime (>= 4.0.20) - framework: dnxcore50
- System.Runtime.Extensions (>= 4.0.10) - framework: dnxcore50
- System.Text.Encoding (>= 4.0.10) - framework: dnxcore50
- System.Threading (>= 4.0.10) - framework: dnxcore50
- System.Xml.ReaderWriter (>= 4.0.10) - framework: dnxcore50
- xunit (2.0)
- xunit.assert (2.0)
- xunit.core (2.0)
- xunit.abstractions (2.0)
- xunit.assert (2.0)
- xunit.core (2.0)
- xunit.extensibility.core (2.0)
- xunit.extensibility.core (2.0)
- xunit.abstractions (2.0)
- xunit.runner.console (2.0)
- xunit.runner.visualstudio (2.1) - version_in_path: true
-GITHUB
- remote: gsscoder/CSharpx
- src/CSharpx/EnumerableExtensions.cs (1ae4e7b6ac1b19493f333e23c9ae636a01b23862)
- src/CSharpx/Maybe.cs (1ae4e7b6ac1b19493f333e23c9ae636a01b23862)
- remote: gsscoder/railwaysharp
- src/RailwaySharp/ErrorHandling.cs (fa4f11173e470d558df80987e69e6ab10f977fcd)
\ No newline at end of file
diff --git a/src/CommandLine/BaseAttribute.cs b/src/CommandLine/BaseAttribute.cs
index e390e88c..255dc0d1 100644
--- a/src/CommandLine/BaseAttribute.cs
+++ b/src/CommandLine/BaseAttribute.cs
@@ -93,12 +93,7 @@ public string HelpText
get { return helpText; }
set
{
- if (value == null)
- {
- throw new ArgumentNullException("value");
- }
-
- helpText = value;
+ helpText = value ?? throw new ArgumentNullException("value");
}
}
@@ -110,12 +105,7 @@ public string MetaValue
get { return metaValue; }
set
{
- if (value == null)
- {
- throw new ArgumentNullException("value");
- }
-
- metaValue = value;
+ metaValue = value ?? throw new ArgumentNullException("value");
}
}
diff --git a/src/CommandLine/CommandLine.csproj b/src/CommandLine/CommandLine.csproj
index 8f829c9f..ba3bc243 100644
--- a/src/CommandLine/CommandLine.csproj
+++ b/src/CommandLine/CommandLine.csproj
@@ -1,210 +1,42 @@
-
-
-
+
+
- Debug
- AnyCPU
- {E1BD3C65-49C3-49E7-BABA-C60980CB3F20}
- Library
- Properties
- CommandLine
CommandLine
- v4.0
- 512
- 12.0.0
- 2.0
- ..\..\
- true
-
-
- true
- full
- false
- bin\Debug\
- TRACE;DEBUG;CSX_EITHER_INTERNAL; CSX_REM_EITHER_BEYOND_2; CSX_ENUM_INTERNAL; ERRH_INTERNAL; ERRH_DISABLE_INLINE_METHODS; CSX_MAYBE_INTERNAL; CSX_REM_EITHER_FUNC;NET40;SKIP_FSHARP
- prompt
- 4
- true
- bin\Debug\CommandLine.XML
-
-
- pdbonly
- true
- bin\Release\
- TRACE;CSX_EITHER_INTERNAL; CSX_REM_EITHER_BEYOND_2; CSX_ENUM_INTERNAL; ERRH_INTERNAL; ERRH_DISABLE_INLINE_METHODS; CSX_MAYBE_INTERNAL; CSX_REM_EITHER_FUNC;NET40;SKIP_FSHARP
- prompt
- 4
+ Library
+ netstandard2.0
+ $(DefineConstants);CSX_EITHER_INTERNAL;CSX_REM_EITHER_BEYOND_2;CSX_ENUM_INTERNAL;ERRH_INTERNAL;ERRH_DISABLE_INLINE_METHODS;CSX_MAYBE_INTERNAL;CSX_REM_EITHER_FUNC
+ $(DefineConstants);SKIP_FSHARP
true
- bin\Release\CommandLine.XML
-
-
- true
-
-
..\..\CommandLine.snk
+ true
+ CommandLineParser
+ CommandLineParser.FSharp
+ gsscoder;nemec;ericnewton76
+ Command Line Parser Library
+ $(VersionSuffix)
+ 2.3.0
+ Terse syntax C# command line parser for .NET. For FSharp support see CommandLineParser.FSharp. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
+ Terse syntax C# command line parser for .NET with F# support. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
+ Copyright (c) 2005 - 2018 Giacomo Stelluti Scala & Contributors
+ https://raw.githubusercontent.com/gsscoder/commandline/master/doc/LICENSE
+ https://github.com/gsscoder/commandline
+ https://raw.githubusercontent.com/commandlineparser/commandline/master/art/CommandLine20.png
+ command line;commandline;argument;option;parser;parsing;library;syntax;shell
+
+
+
+
+
-
- True
- Infrastructure/ErrorHandling.cs
-
-
- True
- Infrastructure/EnumerableExtensions.cs
-
-
- True
- Infrastructure/Maybe.cs
-
-
-
-
-
-
-
+
+ true
+ README.md
+
+
-
- Properties\SharedAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Code
-
-
- Code
-
-
-
- Code
-
-
-
- Code
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll
- True
- True
-
-
-
-
-
-
-
- ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll
- True
- True
-
-
-
-
-
-
- ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll
- True
- True
-
-
-
-
-
-
- ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll
- True
- True
-
-
-
-
-
-
- ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll
- True
- True
-
-
-
-
+
\ No newline at end of file
diff --git a/src/CommandLine/CommandLine.csproj.DotSettings b/src/CommandLine/CommandLine.csproj.DotSettings
deleted file mode 100644
index 7634a78e..00000000
--- a/src/CommandLine/CommandLine.csproj.DotSettings
+++ /dev/null
@@ -1,3 +0,0 @@
-
- True
- True
\ No newline at end of file
diff --git a/src/CommandLine/CommandLine.project.json b/src/CommandLine/CommandLine.project.json
deleted file mode 100644
index 8a7aa92e..00000000
--- a/src/CommandLine/CommandLine.project.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-
- "frameworks": {
- "net40": {
- }
- },
-
- "runtimes": { "win": { } }
-}
\ No newline at end of file
diff --git a/src/CommandLine/Core/InstanceBuilder.cs b/src/CommandLine/Core/InstanceBuilder.cs
index 0c24fddd..82c29ea8 100644
--- a/src/CommandLine/Core/InstanceBuilder.cs
+++ b/src/CommandLine/Core/InstanceBuilder.cs
@@ -4,9 +4,6 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
-#if PLATFORM_DOTNET
-using System.Reflection;
-#endif
using CommandLine.Infrastructure;
using CSharpx;
using RailwaySharp.ErrorHandling;
@@ -23,18 +20,22 @@ public static ParserResult Build(
StringComparer nameComparer,
bool ignoreValueCase,
CultureInfo parsingCulture,
+ bool autoHelp,
+ bool autoVersion,
IEnumerable nonFatalErrors)
{
var typeInfo = factory.MapValueOrDefault(f => f().GetType(), typeof(T));
var specProps = typeInfo.GetSpecifications(pi => SpecificationProperty.Create(
- Specification.FromProperty(pi), pi, Maybe.Nothing