-
Hi,
One could add nullable type support to the library by changing OptionResult.CheckType and OptionDefinition.ConvertValue functions as as shown below.
OptionResult
======
private void CheckType(object value) {
if (value == null &&
!(_defintion.ValueType.IsGenericType && _defintion.ValueType.GetGenericTypeDefinition().Equals(typeof(Nullable<>))...
2009-01-07 12:07:53 UTC by fatihboy
-
hawkeye.parker@autodesk.com
From docs:
UsageBuilder.AddArgument
public void AddArgument(
string name,
string description,
Type type,
bool optional
);
optional
True if the argument should be marked as optional
To Reproduce:
-Create a UsageBuilder and call the AddArgument method, setting "optional" to false.
-Print usage using usage.ToText, e.g....
2008-08-07 02:44:45 UTC by haughki
-
InvalidValueException has meaningless message:
CommandLine.OptParse.InvalidValueException: Invalue value: ...
Probably it should be "Invalid value: ..." instead.
2008-03-22 00:06:15 UTC by vitaut
-
Hi... I used your library in the development of a recent command-line application... works very nicely.
I have a suggestion regarding the exposure of the FoundDefinitions as public. I had the need to perform operations based on the order in which the arguments were specified on the command line. For instance, my command line could be the following:
dvcontroller.exe --rewindAndWait...
2007-12-24 19:53:58 UTC by markjjordan
-
arobinson74 committed patchset 34 of module source to the C# Command-Line Option Parsing Library CVS repository, changing 19 files.
2007-09-18 04:48:36 UTC by arobinson74
-
Hello,
This looks interesting. Could you please post a couple of examples on how to use it?
Thanks,
AF.
2007-02-22 14:22:14 UTC by nobody
-
Do you have any example applications using the
component. If so can you send it to me -
ibain01@yahoo.com. Thanks.
2006-10-05 23:06:39 UTC by nobody
-
arobinson74 committed patchset 33 of module source to the C# Command-Line Option Parsing Library CVS repository, changing 5 files.
2005-02-16 23:46:48 UTC by arobinson74
-
arobinson74 committed patchset 32 of module source to the C# Command-Line Option Parsing Library CVS repository, changing 2 files.
2005-02-15 17:08:44 UTC by arobinson74
-
arobinson74 committed patchset 31 of module source to the C# Command-Line Option Parsing Library CVS repository, changing 7 files.
2005-02-15 16:40:18 UTC by arobinson74