CommandLine Option not filled property

Dec 5, 2014 at 1:30 PM
Hi,
I have the following CommandLineOption class

public class CommandLineOptions
{
    private static string ApplicationExeFileName
    {
        get { return Assembly.GetEntryAssembly().GetName().Name + ".exe"; }
    }

    [Option('c', "PathFileCsv", Required = true, HelpText = "Path del file dei parametri.")]
    public string PathFileCsv { get; set; }

    [Option('p', "PathPfdFolder", Required = true, HelpText = "Path del file di input.")]
    public string PathPfdFolder { get; set; }

    [Option('e', "PathFileError", Required = false, HelpText = "Path del file in presenza di errore.", DefaultValue = "ko.error")]
    public string ErrorFilePath { get; set; }

    [Option('o', "PathFileSuccess", Required = false, HelpText = "Path del file in presenza di successo.", DefaultValue = "ok.success")]
    public string SuccessFilePath { get; set; }

    [HelpOption]
    public string GetUsage()
    {
        var help = new HelpText
        {
            AdditionalNewLineAfterOption = true,
            AddDashesToOption = true
        };
        help.AddPreOptionsLine(string.Format("{0} <-c> <-p> <-e> <-o>", ApplicationExeFileName));
        help.AddPreOptionsLine(string.Format("{0} <--PathFileCsv=> <--PathPfdFolder=> <--PathFileError=> <--PathFileSuccess=>", ApplicationExeFileName));
        help.AddPreOptionsLine(" ");
        help.AddOptions(this);

        return help;
    }
}
When I parse my command line argument with this line of code

var result = Parser.Default.ParseArgumentsStrict(args, commandLineOptions, () => Environment.ExitCode = -1)

All the properties are filled, but SuccessFilePath not.

the main args are
            [0] "-c"
    [1] "C:\\Projectname\\INPUT_TEST.dat"
    [2] "-p"
    [3] "C:\\Projectname\\PdfFiles"
    [4] "-e"
    [5] "C:\\Projectname\\ko.error1"
    [6] "–o"
    [7] "C:\\Projectname\\ok.success"
What is the my error?