Default parameter

Sep 6, 2016 at 8:19 AM
Hi!
I want to use not named parameter (without short and long name).

In command line
appname testdir -i testfile

class Options
{
[Option(Required = true, HelpText = "Directory to sites files.")]
public string InputDir { get; set; }

[Option('i', "input", Required = true, HelpText = "Input file to read.")]
public string InputFile { get; set; }
}

InputDir is null, InputFile is "testfile"

How can I parse command line with not named parameter?