Skip to content
Browse files

initial commit..

  • Loading branch information...
0 parents commit 702479f97184dd09c3cb01a4fb4dfc58919819b2 @mnunberg committed Sep 25, 2012
22 .gitattributes
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
163 .gitignore
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
117 src/CbcNet/CbcNet.csproj
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Couchbase.Cbc</RootNamespace>
+ <AssemblyName>cbc-net</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup>
+ <StartupObject>Couchbase.Cbc.Program</StartupObject>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="CommandLine">
+ <HintPath>..\packages\CommandLineParser.1.9.3.19\lib\CommandLine.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="CbcOptions.cs" />
+ <Compile Include="Commands\CbcSet.cs" />
+ <Compile Include="Commands\CbcObserve.cs" />
+ <Compile Include="Commands\CbcGet.cs" />
+ <Compile Include="Commands\CommandBase.cs" />
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="app.config" />
+ <None Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\couchbase-net-client\lib\EnyimMemcached\Enyim.Caching\Enyim.Caching.csproj">
+ <Project>{D438C0B3-A168-40B8-BDDD-61F0939DFF35}</Project>
+ <Name>Enyim.Caching</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\..\couchbase-net-client\src\Couchbase\Couchbase.csproj">
+ <Project>{708A2350-A26C-444D-B975-8164263951A7}</Project>
+ <Name>Couchbase</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include=".NETFramework,Version=v4.0">
+ <Visible>False</Visible>
+ <ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
112 src/CbcNet/CbcOptions.cs
@@ -0,0 +1,112 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using CommandLine;
+using CommandLine.Text;
+using Couchbase.Results;
+using Couchbase.Operations;
+
+namespace Couchbase.Cbc
+{
+ class CbcOptions : CommandLineOptionsBase
+ {
+ [Option("b", "bucket", Required = false, HelpText = "Bucket to connect to",
+ DefaultValue = "default")]
+ public string Bucket { get; set; }
+
+ [Option("B", "bucket-password", Required = false, HelpText = "Bucket password")]
+ public string BucketPassword { get; set; }
+
+ [Option("H", "hostname", Required = false, HelpText = "Hostname to use",
+ DefaultValue = "127.0.0.1:8091")]
+ public string Hostname { get; set; }
+
+ [Option("u", "username", Required = false, HelpText = "Username")]
+ public string Username { get; set; }
+
+ [Option("p", "password", Required = false, HelpText = "Password")]
+ public string Password { get; set; }
+
+ [Option("c", "command", Required = true, HelpText = "Command to use")]
+ public string Command { get; set; }
+
+ [Option("k", "key", HelpText = "Key to use", Required = true)]
+ public string Key { get; set; }
+
+ [Option("V", "value", HelpText = "Value for command (if applicable)")]
+ public string Value { get; set; }
+
+ [Option("C", "cas", HelpText = "CAS For command (if applicable)")]
+ public UInt64 Cas { get; set; }
+
+ [Option("E", "expiry", HelpText = "Expiration (if applicable)", DefaultValue = 0)]
+ public int expiry { get; set; }
+ public TimeSpan Expiry { get; set; }
+
+ [Option("P", "persist", HelpText = "Persist to this many nodes")]
+ public int persist { get; set; }
+ public PersistTo Persist { get; set; }
+
+ [Option("R", "replicate", HelpText = "Replicate to this many nodes")]
+ public int replicate { get; set; }
+ public ReplicateTo Replicate { get; set; }
+
+
+
+ [HelpOption("?", "help", HelpText = "Display help screen")]
+ public string GetUsage()
+ {
+ HelpText help = new HelpText("Couchbase Command Line Client");
+ help.Copyright = new CopyrightInfo("Couchbase", 2012);
+ help.AddPreOptionsLine("This emulates the 'cbc' command line as in libcouchbase");
+ help.AddOptions(this);
+ return help;
+ }
+
+ public void Process()
+ {
+ if (expiry != 0)
+ {
+ Expiry = new TimeSpan(0, 0, expiry);
+ }
+ else
+ {
+ Expiry = new TimeSpan(0);
+ }
+
+ if (persist != 0)
+ {
+ if (persist > 4)
+ {
+ System.Console.Error.WriteLine(
+ "Detected too high of a persist value (will go ahead anyway");
+ }
+ Persist = (PersistTo)persist;
+ }
+ else
+ {
+ Persist = PersistTo.Zero;
+ }
+
+ if (replicate != 0)
+ {
+ if (replicate > 3)
+ {
+ System.Console.Error.WriteLine(
+ "Detected too high a replicate value (will go ahead anyway..)");
+ }
+ Replicate = (ReplicateTo)replicate;
+ }
+ else
+ {
+ Replicate = ReplicateTo.Zero;
+ }
+
+ if (Hostname.IndexOf(':') == -1)
+ {
+ Hostname += ":8091";
+ }
+ }
+ }
+}
31 src/CbcNet/Commands/CbcGet.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Enyim.Caching.Memcached.Results;
+
+namespace Couchbase.Cbc.Commands
+{
+ class CbcGet : CommandBase
+ {
+ public CbcGet(CouchbaseClient cli,
+ string key,
+ CbcOptions opts)
+ : base(cli, key, opts) { }
+
+ public override bool Execute()
+ {
+ IGetOperationResult<string> gres
+ = client.ExecuteGet<string>(Key);
+ if (!gres.Success)
+ {
+ FailCommand(gres);
+ return false;
+ }
+ Console.Error.WriteLine("Command OK");
+ Console.Error.WriteLine("Value is " + gres.Value);
+ Console.Error.WriteLine("Cas is " + gres.Cas.ToString());
+ return true;
+ }
+ }
+}
76 src/CbcNet/Commands/CbcObserve.cs
@@ -0,0 +1,76 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Couchbase.Results;
+using Couchbase.Operations;
+
+namespace Couchbase.Cbc.Commands
+{
+ class CbcObserve : CommandBase
+ {
+ public UInt64 Cas;
+
+ public CbcObserve(CouchbaseClient cli,
+ string key, CbcOptions options, UInt64 cas = 0) :
+ base(cli, key, options)
+ {
+ if (cas > 0)
+ {
+ Cas = cas;
+ }
+ else if (options.Cas > 0 )
+ {
+ Cas = options.Cas;
+ }
+ else
+ {
+ throw new ArgumentException("Invalid CAS");
+ }
+ }
+
+ public override bool Execute()
+ {
+ IObserveOperationResult res = client.Observe(
+ Key, Cas, options.Persist, options.Replicate);
+
+ if (!res.Success)
+ {
+ FailCommand(res);
+ return false;
+ }
+
+ string pretty = String.Format("Observe Code: (0x{0:x})",
+ (int)res.KeyState);
+
+ foreach (string name in Enum.GetNames(typeof(ObserveKeyState)))
+ {
+ ObserveKeyState v = (ObserveKeyState)
+ Enum.Parse(typeof(ObserveKeyState), name);
+ if (res.KeyState == v)
+ {
+ pretty += " " + name;
+ break;
+ }
+ }
+
+ Console.WriteLine(pretty);
+
+ pretty = String.Format(
+ "Timings: Persist [{0}], Replicate [{1}]",
+ res.PersistenceStats.ToString(),
+ res.ReplicationStats.ToString());
+ Console.WriteLine(pretty);
+
+ return true;
+ }
+ }
+
+ class CbcObserveWrap : CbcObserve
+ {
+ public CbcObserveWrap(CouchbaseClient cli, string key, CbcOptions opts)
+ :base(cli, key, opts)
+ {
+ }
+ }
+}
99 src/CbcNet/Commands/CbcSet.cs
@@ -0,0 +1,99 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Couchbase.Operations;
+using Enyim.Caching.Memcached;
+using Enyim.Caching.Memcached.Results;
+using Couchbase.Results;
+
+namespace Couchbase.Cbc.Commands
+{
+ class CbcSet : CommandBase
+ {
+ public string Value;
+
+ public CbcSet(CouchbaseClient cli,
+ string key, CbcOptions options)
+ : base(cli, key, options)
+ {
+ Value = options.Value;
+ if (Value == null)
+ {
+ throw new ArgumentException("Set command needs value");
+ }
+ }
+
+ private Dictionary<string,StoreMode> modeMap = new Dictionary<string,StoreMode>()
+ {
+ { "add", StoreMode.Add },
+ { "replace", StoreMode.Replace },
+ { "set", StoreMode.Set }
+ };
+
+ public override bool Execute()
+ {
+ ICasOperationResult res;
+ UTF8Encoding utf8 = new UTF8Encoding();
+ byte[] vbytes = utf8.GetBytes(Value);
+ if (modeMap.ContainsKey(options.Command))
+ {
+ StoreMode mode = modeMap[options.Command];
+ Console.Error.WriteLine("Arguments to ExecuteStore: ");
+ Console.Error.WriteLine(
+ String.Format(
+ "0x{0:x}, '{1}', '{2}', {3}, {4}, {5}",
+ mode, Key, Value, options.Expiry, options.Persist, options.Replicate));
+
+ res = client.ExecuteStore(
+ mode, Key, Value, options.Expiry, options.Persist, options.Replicate);
+ if (!res.Success)
+ {
+ Console.Error.WriteLine("Initial command failed. Trying simple version..");
+ Console.Error.WriteLine(res.Message);
+ if (res.InnerResult != null)
+ {
+ Console.Error.WriteLine(res.InnerResult.Message);
+ }
+ res = client.ExecuteStore(mode, Key, Value);
+ }
+ }
+ else if (options.Command == "append")
+ {
+ res = client.ExecuteAppend(Key,
+ options.Cas,
+ new ArraySegment<byte>(vbytes));
+ }
+ else if (options.Command == "prepend")
+ {
+ res = client.ExecuteAppend(Key,
+ options.Cas,
+ new ArraySegment<byte>(vbytes));
+ }
+ else
+ {
+ throw new ArgumentException("Unknown command");
+ }
+
+ if (!res.Success)
+ {
+ FailCommand(res);
+ return false;
+ }
+
+ Console.WriteLine(
+ "Operation Succeeded. Cas: " +
+ res.Cas.ToString());
+
+
+ if (options.Persist != PersistTo.Zero ||
+ options.Replicate != ReplicateTo.Zero)
+ {
+ System.Console.WriteLine("Trying observe now...");
+ new CbcObserve(client, Key, options, res.Cas).Execute();
+ }
+
+ return true;
+ }
+ }
+}
38 src/CbcNet/Commands/CommandBase.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Enyim.Caching.Memcached.Results;
+
+namespace Couchbase.Cbc.Commands
+{
+ interface ICommand
+ {
+ bool Execute();
+ }
+
+ abstract class CommandBase : ICommand
+ {
+ public string Key;
+ protected CouchbaseClient client;
+ protected CbcOptions options;
+
+ public CommandBase(CouchbaseClient client,
+ string key,
+ CbcOptions options)
+ {
+ Key = key;
+ this.client = client;
+ this.options = options;
+ }
+
+ protected void FailCommand(IOperationResult res)
+ {
+ Console.Error.WriteLine("Command Failed");
+ Console.Error.WriteLine("Code is " + res.StatusCode.ToString());
+ Console.Error.WriteLine("Message is " + res.Message);
+ }
+
+ public abstract bool Execute();
+ }
+}
84 src/CbcNet/Program.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using CommandLine;
+using CommandLine.Text;
+using Couchbase;
+using Couchbase.Configuration;
+using Enyim.Caching.Memcached;
+using Enyim.Caching.Memcached.Results;
+using Couchbase.Results;
+using Couchbase.Operations;
+using Couchbase.Cbc.Commands;
+
+namespace Couchbase.Cbc
+{
+ class Program
+ {
+ static Dictionary<string, Type> commandMap = new Dictionary<string, Type>()
+ {
+ { "set", typeof(CbcSet) },
+ { "add", typeof(CbcSet) },
+ { "replace", typeof(CbcSet) },
+ { "append", typeof(CbcSet) },
+ { "prepend", typeof(CbcSet) },
+ { "observe", typeof(CbcObserveWrap) },
+ { "get", typeof(CbcGet) }
+ };
+
+ static void Main(string[] args)
+ {
+ CbcOptions options = new CbcOptions();
+ CommandLineParserSettings settings = new CommandLineParserSettings();
+ settings.CaseSensitive = true;
+ CommandLineParser parser = new CommandLineParser(settings);
+ if (!parser.ParseArguments(args, options, System.Console.Error))
+ {
+ return;
+ }
+
+
+ options.Process();
+
+ var config = new CouchbaseClientConfiguration();
+ config.Bucket = options.Bucket;
+ config.Username = options.Username;
+ config.Password = options.Password;
+ config.BucketPassword = options.BucketPassword;
+ string uriString = "http://" + options.Hostname + "/pools";
+ System.Console.WriteLine("URI: " + uriString);
+ config.Urls.Add(new UriBuilder(uriString).Uri);
+
+ DateTime begin = DateTime.Now;
+ CouchbaseClient cli = new CouchbaseClient(config);
+ System.Console.WriteLine("Created new client..");
+
+ if (!commandMap.ContainsKey(options.Command))
+ {
+ throw new ArgumentException("Unknown command!");
+ }
+
+ Type t = commandMap[options.Command];
+ Type[] proto = {
+ typeof(CouchbaseClient),
+ typeof(string),
+ typeof(CbcOptions)
+ };
+ object[] cargs = {
+ cli,
+ options.Key,
+ options
+ };
+
+
+
+ CommandBase cmd = (CommandBase) t.GetConstructor(proto).Invoke(cargs);
+ cmd.Execute();
+
+ var duration = DateTime.Now - begin;
+ Console.WriteLine(
+ String.Format("Duration was {0:F} Sec.", duration.TotalMilliseconds/1000));
+ }
+ }
+}
36 src/CbcNet/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("cbc-net")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("cbc-net")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("658320f1-c4d6-4f6d-9bb2-c7a7573a0378")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
3 src/CbcNet/app.config
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<configuration>
+<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
4 src/CbcNet/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="CommandLineParser" version="1.9.3.19" targetFramework="net40-Client" />
+</packages>
98 src/cbc-net.sln
@@ -0,0 +1,98 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Couchbase", "..\..\couchbase-net-client\src\Couchbase\Couchbase.csproj", "{708A2350-A26C-444D-B975-8164263951A7}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enyim.Caching", "..\..\couchbase-net-client\lib\EnyimMemcached\Enyim.Caching\Enyim.Caching.csproj", "{D438C0B3-A168-40B8-BDDD-61F0939DFF35}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CbcNet", "CbcNet\CbcNet.csproj", "{E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {708A2350-A26C-444D-B975-8164263951A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {708A2350-A26C-444D-B975-8164263951A7}.Release|x86.ActiveCfg = Release|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {D438C0B3-A168-40B8-BDDD-61F0939DFF35}.Release|x86.ActiveCfg = Release|Any CPU
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Debug|x86.ActiveCfg = Debug|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Debug|x86.Build.0 = Debug|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Release|Any CPU.ActiveCfg = Release|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Release|Mixed Platforms.Build.0 = Release|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Release|x86.ActiveCfg = Release|x86
+ {E72A5EB7-0D3D-45C4-8C0E-9CFBA3A1E664}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = cbc-net\CbcNet.csproj
+ Policies = $0
+ $0.DotNetNamingPolicy = $1
+ $1.DirectoryNamespaceAssociation = None
+ $1.ResourceNamePolicy = FileFormatDefault
+ $0.TextStylePolicy = $2
+ $2.TabsToSpaces = False
+ $2.NoTabsAfterNonTabs = True
+ $2.inheritsSet = VisualStudio
+ $2.inheritsScope = text/plain
+ $2.scope = text/x-csharp
+ $0.CSharpFormattingPolicy = $3
+ $3.IndentSwitchBody = True
+ $3.AnonymousMethodBraceStyle = NextLine
+ $3.PropertyBraceStyle = NextLine
+ $3.PropertyGetBraceStyle = NextLine
+ $3.PropertySetBraceStyle = NextLine
+ $3.EventBraceStyle = NextLine
+ $3.EventAddBraceStyle = NextLine
+ $3.EventRemoveBraceStyle = NextLine
+ $3.StatementBraceStyle = NextLine
+ $3.ArrayInitializerBraceStyle = NextLine
+ $3.BeforeMethodDeclarationParentheses = False
+ $3.BeforeMethodCallParentheses = False
+ $3.BeforeConstructorDeclarationParentheses = False
+ $3.BeforeDelegateDeclarationParentheses = False
+ $3.NewParentheses = False
+ $3.inheritsSet = Mono
+ $3.inheritsScope = text/x-csharp
+ $3.scope = text/x-csharp
+ $0.TextStylePolicy = $4
+ $4.FileWidth = 120
+ $4.TabsToSpaces = False
+ $4.inheritsSet = VisualStudio
+ $4.inheritsScope = text/plain
+ $4.scope = text/plain
+ $0.TextStylePolicy = $5
+ $5.inheritsSet = null
+ $5.scope = application/config+xml
+ $0.XmlFormattingPolicy = $6
+ $6.inheritsSet = null
+ $6.scope = application/config+xml
+ EndGlobalSection
+EndGlobal
14 src/cbc-net.userprefs
@@ -0,0 +1,14 @@
+<Properties>
+ <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
+ <MonoDevelop.Ide.Workbench ActiveDocument="cbc-net/Program.cs">
+ <Files>
+ <File FileName="cbc-net/Program.cs" Line="46" Column="27" />
+ <File FileName="cbc-net/Commands/CbcSet.cs" Line="40" Column="17" />
+ <File FileName="cbc-net/Commands/CommandBase.cs" Line="12" Column="16" />
+ </Files>
+ </MonoDevelop.Ide.Workbench>
+ <MonoDevelop.Ide.DebuggingService.Breakpoints>
+ <BreakpointStore />
+ </MonoDevelop.Ide.DebuggingService.Breakpoints>
+ <MonoDevelop.Ide.DebuggingService.PinnedWatches />
+</Properties>
BIN src/packages/CommandLineParser.1.9.3.19/CommandLineParser.1.9.3.19.nupkg
Binary file not shown.
868 src/packages/CommandLineParser.1.9.3.19/lib/CommandLine.XML
@@ -0,0 +1,868 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>/home/giacomo/Projects/CommandLine/src/libcmdline/bin/Release/CommandLine</name>
+ </assembly>
+ <members>
+ <member name="T:CommandLine.BaseOptionAttribute">
+ <summary>
+ Provides base properties for creating an attribute, used to define rules for command line parsing.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BaseOptionAttribute.ShortName">
+ <summary>
+ Short name of this command line option. You can use only one character.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BaseOptionAttribute.LongName">
+ <summary>
+ Long name of this command line option. This name is usually a single english word.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BaseOptionAttribute.Required">
+ <summary>
+ True if this command line option is required.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BaseOptionAttribute.DefaultValue">
+ <summary>
+ Gets or sets mapped property default value.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BaseOptionAttribute.HelpText">
+ <summary>
+ A short description of this command line option. Usually a sentence summary.
+ </summary>
+ </member>
+ <member name="T:CommandLine.HelpOptionAttribute">
+ <summary>
+ Indicates the instance method that must be invoked when it becomes necessary show your help screen.
+ The method signature is an instance method with no parameters and <see cref="T:System.String" />
+ return value.
+ </summary>
+ </member>
+ <member name="M:CommandLine.HelpOptionAttribute.#ctor">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.HelpOptionAttribute" /> class.
+ </summary>
+ </member>
+ <member name="M:CommandLine.HelpOptionAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.HelpOptionAttribute" /> class.
+ Allows you to define short and long option names.
+ </summary>
+ <param name="shortName">The short name of the option or null if not used.</param>
+ <param name="longName">The long name of the option or null if not used.</param>
+ </member>
+ <member name="P:CommandLine.HelpOptionAttribute.Required">
+ <summary>
+ Returns always false for this kind of option.
+ This behaviour can't be changed by design; if you try set <see cref="P:CommandLine.HelpOptionAttribute.Required" />
+ an <see cref="T:System.InvalidOperationException" /> will be thrown.
+ </summary>
+ </member>
+ <member name="T:CommandLine.OptionArrayAttribute">
+ <summary>
+ Models an option that can accept multiple values as separated arguments.
+ </summary>
+ </member>
+ <member name="M:CommandLine.OptionArrayAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.OptionArrayAttribute" /> class.
+ </summary>
+ <param name="shortName">The short name of the option or null if not used.</param>
+ <param name="longName">The long name of the option or null if not used.</param>
+ </member>
+ <member name="T:CommandLine.OptionAttribute">
+ <summary>
+ Models an option specification.
+ </summary>
+ </member>
+ <member name="M:CommandLine.OptionAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.OptionAttribute" /> class.
+ </summary>
+ <param name="shortName">The short name of the option or null if not used.</param>
+ <param name="longName">The long name of the option or null if not used.</param>
+ </member>
+ <member name="P:CommandLine.OptionAttribute.MutuallyExclusiveSet">
+ <summary>
+ Gets or sets the option's mutually exclusive set.
+ </summary>
+ </member>
+ <member name="T:CommandLine.OptionListAttribute">
+ <summary>
+ Models an option that can accept multiple values.
+ Must be applied to a field compatible with an <see cref="!:System.Collections.Generic.IList&lt;T&gt;" /> interface
+ of <see cref="T:System.String" /> instances.
+ </summary>
+ </member>
+ <member name="M:CommandLine.OptionListAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.OptionListAttribute" /> class.
+ </summary>
+ <param name="shortName">The short name of the option or null if not used.</param>
+ <param name="longName">The long name of the option or null if not used.</param>
+ </member>
+ <member name="M:CommandLine.OptionListAttribute.#ctor(System.String,System.String,System.Char)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.OptionListAttribute" /> class.
+ </summary>
+ <param name="shortName">The short name of the option or null if not used.</param>
+ <param name="longName">The long name of the option or null if not used.</param>
+ <param name="separator">Values separator character.</param>
+ </member>
+ <member name="P:CommandLine.OptionListAttribute.Separator">
+ <summary>
+ Gets or sets the values separator character.
+ </summary>
+ </member>
+ <member name="T:CommandLine.ValueListAttribute">
+ <summary>
+ Models a list of command line arguments that are not options.
+ Must be applied to a field compatible with an <see cref="!:System.Collections.Generic.IList&lt;T&gt;" /> interface
+ of <see cref="T:System.String" /> instances.
+ </summary>
+ </member>
+ <member name="M:CommandLine.ValueListAttribute.#ctor(System.Type)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.ValueListAttribute" /> class.
+ </summary>
+ <param name="concreteType">A type that implements <see cref="!:System.Collections.Generic.IList&lt;T&gt;" />.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="concreteType" /> is null.</exception>
+ </member>
+ <member name="P:CommandLine.ValueListAttribute.MaximumElements">
+ <summary>
+ Gets or sets the maximum element allow for the list managed by <see cref="T:CommandLine.ValueListAttribute" /> type.
+ If lesser than 0, no upper bound is fixed.
+ If equal to 0, no elements are allowed.
+ </summary>
+ </member>
+ <member name="T:CommandLine.BadOptionInfo">
+ <summary>
+ Models a bad parsed option.
+ </summary>
+ </member>
+ <member name="P:CommandLine.BadOptionInfo.ShortName">
+ <summary>
+ The short name of the option
+ </summary>
+ <value>Returns the short name of the option.</value>
+ </member>
+ <member name="P:CommandLine.BadOptionInfo.LongName">
+ <summary>
+ The long name of the option
+ </summary>
+ <value>Returns the long name of the option.</value>
+ </member>
+ <member name="T:CommandLine.ParsingError">
+ <summary>
+ Models a parsing error.
+ </summary>
+ </member>
+ <member name="P:CommandLine.ParsingError.BadOption">
+ <summary>
+ Gets or a the bad parsed option.
+ </summary>
+ <value>
+ The bad option.
+ </value>
+ </member>
+ <member name="P:CommandLine.ParsingError.ViolatesRequired">
+ <summary>
+ Gets or sets a value indicating whether this <see cref="T:CommandLine.ParsingError" /> violates required.
+ </summary>
+ <value>
+ <c>true</c> if violates required; otherwise, <c>false</c>.
+ </value>
+ </member>
+ <member name="P:CommandLine.ParsingError.ViolatesFormat">
+ <summary>
+ Gets or sets a value indicating whether this <see cref="T:CommandLine.ParsingError" /> violates format.
+ </summary>
+ <value>
+ <c>true</c> if violates format; otherwise, <c>false</c>.
+ </value>
+ </member>
+ <member name="P:CommandLine.ParsingError.ViolatesMutualExclusiveness">
+ <summary>
+ Gets or sets a value indicating whether this <see cref="T:CommandLine.ParsingError" /> violates mutual exclusiveness.
+ </summary>
+ <value>
+ <c>true</c> if violates mutual exclusiveness; otherwise, <c>false</c>.
+ </value>
+ </member>
+ <member name="T:CommandLine.PostParsingState">
+ <summary>
+ Models a type that records the parser state afeter parsing.
+ </summary>
+ </member>
+ <member name="P:CommandLine.PostParsingState.Errors">
+ <summary>
+ Gets a list of parsing errors.
+ </summary>
+ <value>
+ Parsing errors.
+ </value>
+ </member>
+ <member name="T:CommandLine.ICommandLineParser">
+ <summary>
+ Defines a basic interface to parse command line arguments.
+ </summary>
+ </member>
+ <member name="M:CommandLine.ICommandLineParser.ParseArguments(System.String[],System.Object)">
+ <summary>
+ Parses a <see cref="T:System.String" /> array of command line arguments, setting values in <paramref name="options" />
+ parameter instance's public fields decorated with appropriate attributes.
+ </summary>
+ <param name="args">A <see cref="T:System.String" /> array of command line arguments.</param>
+ <param name="options">An object's instance used to receive values.
+ Parsing rules are defined using <see cref="T:CommandLine.BaseOptionAttribute" /> derived types.</param>
+ <returns>True if parsing process succeed.</returns>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="args" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="options" /> is null.</exception>
+ </member>
+ <member name="M:CommandLine.ICommandLineParser.ParseArguments(System.String[],System.Object,System.IO.TextWriter)">
+ <summary>
+ Parses a <see cref="T:System.String" /> array of command line arguments, setting values in <paramref name="options" />
+ parameter instance's public fields decorated with appropriate attributes.
+ This overload allows you to specify a <see cref="T:System.IO.TextWriter" /> derived instance for write text messages.
+ </summary>
+ <param name="args">A <see cref="T:System.String" /> array of command line arguments.</param>
+ <param name="options">An object's instance used to receive values.
+ Parsing rules are defined using <see cref="T:CommandLine.BaseOptionAttribute" /> derived types.</param>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ usually <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ <returns>True if parsing process succeed.</returns>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="args" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="options" /> is null.</exception>
+ </member>
+ <member name="T:CommandLine.CommandLineOptionsBase">
+ <summary>
+ Provides the abstract base class for a strongly typed options target. Used when you need to get parsing errors.
+ </summary>
+ </member>
+ <member name="T:CommandLine.CommandLineParserException">
+ <summary>
+ This exception is thrown when a generic parsing error occurs.
+ </summary>
+ </member>
+ <member name="T:CommandLine.CommandLineParserSettings">
+ <summary>
+ Specifies a set of features to configure a <see cref="T:CommandLine.CommandLineParser" /> behavior.
+ </summary>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class.
+ </summary>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.Boolean)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting the case comparison behavior.
+ </summary>
+ <param name="caseSensitive">If set to true, parsing will be case sensitive.</param>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.IO.TextWriter)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting the <see cref="T:System.IO.TextWriter" /> used for help method output.
+ </summary>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ default <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.Boolean,System.IO.TextWriter)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting case comparison and help output options.
+ </summary>
+ <param name="caseSensitive">If set to true, parsing will be case sensitive.</param>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ default <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.Boolean,System.Boolean)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting case comparison and mutually exclusive behaviors.
+ </summary>
+ <param name="caseSensitive">If set to true, parsing will be case sensitive.</param>
+ <param name="mutuallyExclusive">If set to true, enable mutually exclusive behavior.</param>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.Boolean,System.Boolean,System.IO.TextWriter)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting case comparison, mutually exclusive behavior and help output option.
+ </summary>
+ <param name="caseSensitive">If set to true, parsing will be case sensitive.</param>
+ <param name="mutuallyExclusive">If set to true, enable mutually exclusive behavior.</param>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ default <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ </member>
+ <member name="M:CommandLine.CommandLineParserSettings.#ctor(System.Boolean,System.Boolean,System.Boolean,System.IO.TextWriter)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParserSettings" /> class,
+ setting case comparison, mutually exclusive behavior and help output option.
+ </summary>
+ <param name="caseSensitive">If set to true, parsing will be case sensitive.</param>
+ <param name="mutuallyExclusive">If set to true, enable mutually exclusive behavior.</param>
+ <param name="ignoreUnknownArguments">If set to true, allow the parser to skip unknown argument, otherwise return a parse failure</param>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ default <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ </member>
+ <member name="P:CommandLine.CommandLineParserSettings.CaseSensitive">
+ <summary>
+ Gets or sets the case comparison behavior.
+ Default is set to true.
+ </summary>
+ </member>
+ <member name="P:CommandLine.CommandLineParserSettings.MutuallyExclusive">
+ <summary>
+ Gets or sets the mutually exclusive behavior.
+ Default is set to false.
+ </summary>
+ </member>
+ <member name="P:CommandLine.CommandLineParserSettings.HelpWriter">
+ <summary>
+ Gets or sets the <see cref="T:System.IO.TextWriter" /> used for help method output.
+ Setting this property to null, will disable help screen.
+ </summary>
+ </member>
+ <member name="P:CommandLine.CommandLineParserSettings.IgnoreUnknownArguments">
+ <summary>
+ Gets or sets a value indicating if the parser shall move on to the next argument and ignore the given argument if it
+ encounter an unknown arguments
+ </summary>
+ <value>
+ <c>true</c> to allow parsing the arguments with differents class options that do not have all the arguments.
+ </value>
+ <remarks>
+ This allows fragmented version class parsing, useful for project with addon where addons also requires command line arguments but
+ when these are unknown by the main program at build time.
+ </remarks>
+ </member>
+ <member name="T:CommandLine.CommandLineParser">
+ <summary>
+ Provides methods to parse command line arguments.
+ Default implementation for <see cref="T:CommandLine.ICommandLineParser" />.
+ </summary>
+ </member>
+ <member name="M:CommandLine.CommandLineParser.#ctor">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParser" /> class.
+ </summary>
+ </member>
+ <member name="M:CommandLine.CommandLineParser.#ctor(CommandLine.CommandLineParserSettings)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.CommandLineParser" /> class,
+ configurable with a <see cref="T:CommandLine.CommandLineParserSettings" /> object.
+ </summary>
+ <param name="settings">The <see cref="T:CommandLine.CommandLineParserSettings" /> object is used to configure
+ aspects and behaviors of the parser.</param>
+ </member>
+ <member name="P:CommandLine.CommandLineParser.Default">
+ <summary>
+ Singleton instance created with basic defaults.
+ </summary>
+ </member>
+ <member name="M:CommandLine.CommandLineParser.ParseArguments(System.String[],System.Object)">
+ <summary>
+ Parses a <see cref="T:System.String" /> array of command line arguments, setting values in <paramref name="options" />
+ parameter instance's public fields decorated with appropriate attributes.
+ </summary>
+ <param name="args">A <see cref="T:System.String" /> array of command line arguments.</param>
+ <param name="options">An object's instance used to receive values.
+ Parsing rules are defined using <see cref="T:CommandLine.BaseOptionAttribute" /> derived types.</param>
+ <returns>True if parsing process succeed.</returns>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="args" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="options" /> is null.</exception>
+ </member>
+ <member name="M:CommandLine.CommandLineParser.ParseArguments(System.String[],System.Object,System.IO.TextWriter)">
+ <summary>
+ Parses a <see cref="T:System.String" /> array of command line arguments, setting values in <paramref name="options" />
+ parameter instance's public fields decorated with appropriate attributes.
+ This overload allows you to specify a <see cref="T:System.IO.TextWriter" /> derived instance for write text messages.
+ </summary>
+ <param name="args">A <see cref="T:System.String" /> array of command line arguments.</param>
+ <param name="options">An object's instance used to receive values.
+ Parsing rules are defined using <see cref="T:CommandLine.BaseOptionAttribute" /> derived types.</param>
+ <param name="helpWriter">Any instance derived from <see cref="T:System.IO.TextWriter" />,
+ usually <see cref="P:System.Console.Error" />. Setting this argument to null, will disable help screen.</param>
+ <returns>True if parsing process succeed.</returns>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="args" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="options" /> is null.</exception>
+ </member>
+ <member name="T:CommandLine.Text.BaseSentenceBuilder">
+ <summary>
+ Models an abstract sentence builder.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.OptionWord">
+ <summary>
+ Gets a string containing word 'option'.
+ </summary>
+ <value>
+ The word 'option'.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.AndWord">
+ <summary>
+ Gets a string containing the word 'and'.
+ </summary>
+ <value>
+ The word 'and'.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.RequiredOptionMissingText">
+ <summary>
+ Gets a string containing the sentence 'required option missing'.
+ </summary>
+ <value>
+ The sentence 'required option missing'.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.ViolatesFormatText">
+ <summary>
+ Gets a string containing the sentence 'violates format'.
+ </summary>
+ <value>
+ The sentence 'violates format'.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.ViolatesMutualExclusivenessText">
+ <summary>
+ Gets a string containing the sentence 'violates mutual exclusiveness'.
+ </summary>
+ <value>
+ The sentence 'violates mutual exclusiveness'.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.BaseSentenceBuilder.ErrorsHeadingText">
+ <summary>
+ Gets a string containing the error heading text.
+ </summary>
+ <value>
+ The error heading text.
+ </value>
+ </member>
+ <member name="M:CommandLine.Text.BaseSentenceBuilder.CreateBuiltIn">
+ <summary>
+ Creates the built in sentence builder.
+ </summary>
+ <returns>
+ The built in sentence builder.
+ </returns>
+ </member>
+ <member name="T:CommandLine.Text.EnglishSentenceBuilder">
+ <summary>
+ Models an english sentence builder, currently the default one.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.OptionWord">
+ <summary>
+ Gets a string containing word 'option' in english.
+ </summary>
+ <value>
+ The word 'option' in english.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.AndWord">
+ <summary>
+ Gets a string containing the word 'and' in english.
+ </summary>
+ <value>
+ The word 'and' in english.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.RequiredOptionMissingText">
+ <summary>
+ Gets a string containing the sentence 'required option missing' in english.
+ </summary>
+ <value>
+ The sentence 'required option missing' in english.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.ViolatesFormatText">
+ <summary>
+ Gets a string containing the sentence 'violates format' in english.
+ </summary>
+ <value>
+ The sentence 'violates format' in english.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.ViolatesMutualExclusivenessText">
+ <summary>
+ Gets a string containing the sentence 'violates mutual exclusiveness' in english.
+ </summary>
+ <value>
+ The sentence 'violates mutual exclusiveness' in english.
+ </value>
+ </member>
+ <member name="P:CommandLine.Text.EnglishSentenceBuilder.ErrorsHeadingText">
+ <summary>
+ Gets a string containing the error heading text in english.
+ </summary>
+ <value>
+ The error heading text in english.
+ </value>
+ </member>
+ <member name="T:CommandLine.Text.CopyrightInfo">
+ <summary>
+ Models the copyright informations part of an help text.
+ You can assign it where you assign any <see cref="T:System.String" /> instance.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.#ctor">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.CopyrightInfo" /> class.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.#ctor(System.String,System.Int32)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.CopyrightInfo" /> class
+ specifying author and year.
+ </summary>
+ <param name="author">The company or person holding the copyright.</param>
+ <param name="year">The year of coverage of copyright.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="author" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.#ctor(System.String,System.Int32[])">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.CopyrightInfo" /> class
+ specifying author and years.
+ </summary>
+ <param name="author">The company or person holding the copyright.</param>
+ <param name="years">The years of coverage of copyright.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="author" /> is null or empty string.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">Thrown when parameter <paramref name="years" /> is not supplied.</exception>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.#ctor(System.Boolean,System.String,System.Int32[])">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.CopyrightInfo" /> class
+ specifying symbol case, author and years.
+ </summary>
+ <param name="isSymbolUpper">The case of the copyright symbol.</param>
+ <param name="author">The company or person holding the copyright.</param>
+ <param name="years">The years of coverage of copyright.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="author" /> is null or empty string.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">Thrown when parameter <paramref name="years" /> is not supplied.</exception>
+ </member>
+ <member name="P:CommandLine.Text.CopyrightInfo.CopyrightWord">
+ <summary>
+ When overridden in a derived class, allows to specify a different copyright word.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.ToString">
+ <summary>
+ Returns the copyright informations as a <see cref="T:System.String" />.
+ </summary>
+ <returns>The <see cref="T:System.String" /> that contains the copyright informations.</returns>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.FormatYears(System.Int32[])">
+ <summary>
+ When overridden in a derived class, allows to specify a new algorithm to render copyright years
+ as a <see cref="T:System.String" /> instance.
+ </summary>
+ <param name="years">A <see cref="T:System.Int32" /> array of years.</param>
+ <returns>A <see cref="T:System.String" /> instance with copyright years.</returns>
+ </member>
+ <member name="M:CommandLine.Text.CopyrightInfo.op_Implicit(CommandLine.Text.CopyrightInfo)~System.String">
+ <summary>
+ Converts the copyright informations to a <see cref="T:System.String" />.
+ </summary>
+ <param name="info">This <see cref="T:CommandLine.Text.CopyrightInfo" /> instance.</param>
+ <returns>The <see cref="T:System.String" /> that contains the copyright informations.</returns>
+ </member>
+ <member name="T:CommandLine.Text.HeadingInfo">
+ <summary>
+ Models the heading informations part of an help text.
+ You can assign it where you assign any <see cref="T:System.String" /> instance.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.#ctor(System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HeadingInfo" /> class
+ specifying program name.
+ </summary>
+ <param name="programName">The name of the program.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="programName" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HeadingInfo" /> class
+ specifying program name and version.
+ </summary>
+ <param name="programName">The name of the program.</param>
+ <param name="version">The version of the program.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="programName" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.ToString">
+ <summary>
+ Returns the heading informations as a <see cref="T:System.String" />.
+ </summary>
+ <returns>The <see cref="T:System.String" /> that contains the heading informations.</returns>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.WriteMessage(System.String,System.IO.TextWriter)">
+ <summary>
+ Writes out a string and a new line using the program name specified in the constructor
+ and <paramref name="message" /> parameter.
+ </summary>
+ <param name="message">The <see cref="T:System.String" /> message to write.</param>
+ <param name="writer">The target <see cref="T:System.IO.TextWriter" /> derived type.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="message" /> is null or empty string.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="writer" /> is null.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.WriteMessage(System.String)">
+ <summary>
+ Writes out a string and a new line using the program name specified in the constructor
+ and <paramref name="message" /> parameter to standard output stream.
+ </summary>
+ <param name="message">The <see cref="T:System.String" /> message to write.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="message" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.WriteError(System.String)">
+ <summary>
+ Writes out a string and a new line using the program name specified in the constructor
+ and <paramref name="message" /> parameter to standard error stream.
+ </summary>
+ <param name="message">The <see cref="T:System.String" /> message to write.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="message" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HeadingInfo.op_Implicit(CommandLine.Text.HeadingInfo)~System.String">
+ <summary>
+ Converts the heading informations to a <see cref="T:System.String" />.
+ </summary>
+ <param name="info">This <see cref="T:CommandLine.Text.HeadingInfo" /> instance.</param>
+ <returns>The <see cref="T:System.String" /> that contains the heading informations.</returns>
+ </member>
+ <member name="T:CommandLine.Text.HandleParsingErrorsDelegate">
+ <summary>
+ Handle parsing errors delegate.
+ </summary>
+ </member>
+ <member name="T:CommandLine.Text.FormatOptionHelpTextEventArgs">
+ <summary>
+ Provides data for the FormatOptionHelpText event.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.FormatOptionHelpTextEventArgs.#ctor(CommandLine.BaseOptionAttribute)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.FormatOptionHelpTextEventArgs" /> class.
+ </summary>
+ <param name="option">Option to format.</param>
+ </member>
+ <member name="P:CommandLine.Text.FormatOptionHelpTextEventArgs.Option">
+ <summary>
+ Gets the option to format.
+ </summary>
+ </member>
+ <member name="T:CommandLine.Text.HelpText">
+ <summary>
+ Models an help text and collects related informations.
+ You can assign it in place of a <see cref="T:System.String" /> instance.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor(CommandLine.Text.BaseSentenceBuilder)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class
+ specifying the sentence builder.
+ </summary>
+ <param name="sentenceBuilder">
+ A <see cref="T:CommandLine.Text.BaseSentenceBuilder" /> instance.
+ </param>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor(System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class
+ specifying heading informations.
+ </summary>
+ <param name="heading">A string with heading information or
+ an instance of <see cref="T:CommandLine.Text.HeadingInfo" />.</param>
+ <exception cref="T:System.ArgumentException">Thrown when parameter <paramref name="heading" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor(CommandLine.Text.BaseSentenceBuilder,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class
+ specifying the sentence builder and heading informations.
+ </summary>
+ <param name="sentenceBuilder">
+ A <see cref="T:CommandLine.Text.BaseSentenceBuilder" /> instance.
+ </param>
+ <param name="heading">
+ A string with heading information or
+ an instance of <see cref="T:CommandLine.Text.HeadingInfo" />.
+ </param>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor(System.String,System.String)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class
+ specifying heading and copyright informations.
+ </summary>
+ <param name="heading">A string with heading information or
+ an instance of <see cref="T:CommandLine.Text.HeadingInfo" />.</param>
+ <param name="copyright">A string with copyright information or
+ an instance of <see cref="T:CommandLine.Text.CopyrightInfo" />.</param>
+ <exception cref="T:System.ArgumentException">Thrown when one or more parameters <paramref name="heading" /> are null or empty strings.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.#ctor(System.String,System.String,System.Object)">
+ <summary>
+ Initializes a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class
+ specifying heading and copyright informations.
+ </summary>
+ <param name="heading">A string with heading information or
+ an instance of <see cref="T:CommandLine.Text.HeadingInfo" />.</param>
+ <param name="copyright">A string with copyright information or
+ an instance of <see cref="T:CommandLine.Text.CopyrightInfo" />.</param>
+ <param name="options">The instance that collected command line arguments parsed with <see cref="T:CommandLine.CommandLineParser" /> class.</param>
+ <exception cref="T:System.ArgumentException">Thrown when one or more parameters <paramref name="heading" /> are null or empty strings.</exception>
+ </member>
+ <member name="T:CommandLine.Text.HelpText.MessageEnum">
+ <summary>
+ Message type enumeration.
+ </summary>
+ </member>
+ <member name="F:CommandLine.Text.HelpText.MessageEnum.ParsingErrorViolatesFormat">
+ <summary>
+ Parsing error due to a violation of the format of an option value.
+ </summary>
+ </member>
+ <member name="F:CommandLine.Text.HelpText.MessageEnum.ParsingErrorViolatesRequired">
+ <summary>
+ Parsing error due to a violation of mandatory option.
+ </summary>
+ </member>
+ <member name="F:CommandLine.Text.HelpText.MessageEnum.ParsingErrorViolatesExclusiveness">
+ <summary>
+ Parsing error due to a violation of the mutual exclusiveness of two or more option.
+ </summary>
+ </member>
+ <member name="E:CommandLine.Text.HelpText.FormatOptionHelpText">
+ <summary>
+ Occurs when an option help text is formatted.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.HelpText.Heading">
+ <summary>
+ Sets the heading information string.
+ You can directly assign a <see cref="T:CommandLine.Text.HeadingInfo" /> instance.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.HelpText.Copyright">
+ <summary>
+ Sets the copyright information string.
+ You can directly assign a <see cref="T:CommandLine.Text.CopyrightInfo" /> instance.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.HelpText.MaximumDisplayWidth">
+ <summary>
+ Gets or sets the maximum width of the display. This determines word wrap when displaying the text.
+ </summary>
+ <value>The maximum width of the display.</value>
+ </member>
+ <member name="P:CommandLine.Text.HelpText.AddDashesToOption">
+ <summary>
+ Gets or sets the format of options for adding or removing dashes.
+ It modifies behavior of <see cref="M:CommandLine.Text.HelpText.AddOptions(System.Object)" /> method.
+ </summary>
+ </member>
+ <member name="P:CommandLine.Text.HelpText.AdditionalNewLineAfterOption">
+ <summary>
+ Gets or sets whether to add an additional line after the description of the option.
+ </summary>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AutoBuild(System.Object)">
+ <summary>
+ Creates a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class using common defaults.
+ </summary>
+ <returns>
+ An instance of <see cref="T:CommandLine.Text.HelpText" /> class.
+ </returns>
+ <param name="options">
+ The instance that collected command line arguments parsed with <see cref="T:CommandLine.CommandLineParser" /> class.
+ </param>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AutoBuild(System.Object,CommandLine.Text.HandleParsingErrorsDelegate)">
+ <summary>
+ Creates a new instance of the <see cref="T:CommandLine.Text.HelpText" /> class using common defaults.
+ </summary>
+ <returns>
+ An instance of <see cref="T:CommandLine.Text.HelpText" /> class.
+ </returns>
+ <param name="options">
+ The instance that collected command line arguments parsed with <see cref="T:CommandLine.CommandLineParser" /> class.
+ </param>
+ <param name="errDelegate">
+ A delegate used to customize the text block for reporting parsing errors.
+ </param>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AddPreOptionsLine(System.String)">
+ <summary>
+ Adds a text line after copyright and before options usage informations.
+ </summary>
+ <param name="value">A <see cref="T:System.String" /> instance.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="value" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AddPostOptionsLine(System.String)">
+ <summary>
+ Adds a text line at the bottom, after options usage informations.
+ </summary>
+ <param name="value">A <see cref="T:System.String" /> instance.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="value" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AddOptions(System.Object)">
+ <summary>
+ Adds a text block with options usage informations.
+ </summary>
+ <param name="options">The instance that collected command line arguments parsed with <see cref="T:CommandLine.CommandLineParser" /> class.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="options" /> is null.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AddOptions(System.Object,System.String)">
+ <summary>
+ Adds a text block with options usage informations.
+ </summary>
+ <param name="options">The instance that collected command line arguments parsed with the <see cref="T:CommandLine.CommandLineParser" /> class.</param>
+ <param name="requiredWord">The word to use when the option is required.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="options" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="requiredWord" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.AddOptions(System.Object,System.String,System.Int32)">
+ <summary>
+ Adds a text block with options usage informations.
+ </summary>
+ <param name="options">The instance that collected command line arguments parsed with the <see cref="T:CommandLine.CommandLineParser" /> class.</param>
+ <param name="requiredWord">The word to use when the option is required.</param>
+ <param name="maximumLength">The maximum length of the help documentation.</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="options" /> is null.</exception>
+ <exception cref="T:System.ArgumentNullException">Thrown when parameter <paramref name="requiredWord" /> is null or empty string.</exception>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.RenderParsingErrorsText(CommandLine.CommandLineOptionsBase,System.Int32)">
+ <summary>
+ Builds a string that contains a parsing error message.
+ </summary>
+ <param name="options">
+ An options target <see cref="T:CommandLine.CommandLineOptionsBase" /> instance that collected command line arguments parsed with the <see cref="T:CommandLine.CommandLineParser" /> class.
+ </param>
+ <returns>
+ The <see cref="T:System.String" /> that contains the parsing error message.
+ </returns>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.ToString">
+ <summary>
+ Returns the help informations as a <see cref="T:System.String" />.
+ </summary>
+ <returns>The <see cref="T:System.String" /> that contains the help informations.</returns>
+ </member>
+ <member name="M:CommandLine.Text.HelpText.op_Implicit(CommandLine.Text.HelpText)~System.String">
+ <summary>
+ Converts the help informations to a <see cref="T:System.String" />.
+ </summary>
+ <param name="info">This <see cref="T:CommandLine.Text.HelpText" /> instance.</param>
+ <returns>The <see cref="T:System.String" /> that contains the help informations.</returns>
+ </member>
+ </members>
+</doc>
BIN src/packages/CommandLineParser.1.9.3.19/lib/CommandLine.dll
Binary file not shown.
48 src/packages/CommandLineParser.1.9.3.19/readme.txt
@@ -0,0 +1,48 @@
+Command Line Parser Library 1.9.3.19 Beta
+-----------------------------------------
+Giacomo Stelluti Scala
+(gsscoder@gmail.com)
+
+Codeplex: http://commandline.codeplex.com/
+GitHub (Latest Sources, Updated Docs): https://github.com/gsscoder/commandline
+
+Upgrading from 1.8.* versions:
+------------------------------
+The major API change is that all attributes that inherits from BaseOptionAttribute now
+apply only to properties. Fields are no longer supported.
+
+Old Code:
+---------
+class Options {
+ [Option("o", "my-option", HelpText="This is an option!")]
+ public int MyOption = 10;
+}
+
+New Code:
+---------
+class Options {
+ [Option("o", "my-option", DefaultValue=10, HelpText="This is an option!")]
+ public int MyOption { get; set; }
+}
+
+As you can see I've added the new DefaultValue property to help you initialize properties.
+
+Shortcut for Help Screen
+------------------------
+[HelpOption]
+public string GetUsage()
+{
+ return HelpText.AutoBuild(this,
+ (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
+}
+
+Note:
+-----
+If you don't use mutually exclusive options, now there's a singleton built for common uses:
+
+if (CommandLineParser.Default.ParseArguments(args, options)) {
+ // consume values here
+}
+
+
+Have fun!
5 src/packages/repositories.config
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<repositories>
+ <repository path="..\..\..\couchbase-net-client\src\Couchbase\packages.config" />
+ <repository path="..\cbc-net\packages.config" />
+</repositories>

0 comments on commit 702479f

Please sign in to comment.
Something went wrong with that request. Please try again.