gsscoder / commandline

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

Order of options where there are list options and values #511

Open ffadrique opened 4 years ago

ffadrique commented 4 years ago

Hi.

The attached file contains the configuration to parse a number of options that consist of list of elements and finally a list of filenames (after the --). The problem appear when the last option prior to the -- is a list based option. In that case the parser responds with: 'A required value not bound to option name is missing'

The following command line work with the provided C# configuration: --modules ../utilities/x64/Debug,../auxtool/x64/Debug --outdir ./x64/Debug -- m_xfunit.f03 m_xfunit_assertion.f03

The following command line does not (with the error mentioned above) --outdir ./x64/Debug --modules ../utilities/x64/Debug,../auxtool/x64/Debug -- m_xfunit.f03 m_xfunit_assertion.f03

Am I overlooking something or is this an issue or limitation in the software?

Regards, Fran

CommandLineOptions.cs.txt

gsscoder commented 4 years ago

Hi Fran, sorry for replying late. Thank you for using the library.

Please fire an issue here: https://github.com/commandlineparser/commandline/issues.

I'm no more the only maintainer, other valid contributors may help you (me included if time allows).

Regards, Giacomo S. S.

Il giorno dom 12 apr 2020 alle ore 00:23 ffadrique notifications@github.com ha scritto:

Hi.

The attached file contains the configuration to parse a number of options that consist of list of elements and finally a list of filenames (after the --). The problem appear when the last option prior to the -- is a list based option. In that case the parser responds with: 'A required value not bound to option name is missing'

The following command line work with the provided C# configuration: --modules ../utilities/x64/Debug,../auxtool/x64/Debug --outdir ./x64/Debug -- m_xfunit.f03 m_xfunit_assertion.f03

The following command line does not (with the error mentioned above) --outdir ./x64/Debug --modules ../utilities/x64/Debug,../auxtool/x64/Debug -- m_xfunit.f03 m_xfunit_assertion.f03

Am I overlooking something or is this an issue or limitation in the software?

Regards, Fran

CommandLineOptions.cs.txt https://github.com/gsscoder/commandline/files/4465530/CommandLineOptions.cs.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gsscoder/commandline/issues/511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJDR5G6OV4TLSJCZH6V2U3RMDUVTANCNFSM4MGFLNZA .