gsscoder / commandline

Terse syntax C# command line parser for .NET with F# support
1.63k stars 293 forks source link

Stackable ValueOption and Option #163

Open netxph opened 9 years ago

netxph commented 9 years ago

I'd like to mimic this...

app.exe -type SomeType
app.exe SomeType
[ValueOption(0)]
[Option('t', "typeName", Required=true)]
public string TypeName { get; set; }

Having this option gives parsing error on app.exe SomeType. Any suggestions recommendations?

gsscoder commented 9 years ago

Hi @netxph, wellcome... It's always important state which version you're talking about: Latest stable (1.9.71.2) or 2.0.1.0 pre-release. Since you quoted ValueOption I assume you'd like to use latest stable.

You can't apply more attributes to the same identifier (I mean not in general, but the one of this library).

Have checked the wiki: https://github.com/gsscoder/commandline/wiki? All except Latest Version refers to 1.9.71.2. Please give a look and back if you don't find an answer here or you want further clarifications.