You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Options
{
[Value(0, Required = true)]
public string Text { get; set; }
[Option("option", Required = true)]
public string Option { get; set; }
}
mycmd.exe "test" --option "test"
produces:
ERROR(S):
A required value not bound to option name is missing.
--option Required.
--help Display this help screen.
--version Display version information.
value pos. 0 Required.
whereas
mycmd.exe "test1" --option "test2"
works fine.
It's not apparent why passing the same value would cause commandline to behave differently.
The text was updated successfully, but these errors were encountered:
Tuesday Apr 25, 2017 at 14:54 GMT
Originally opened as gsscoder/commandline#440
@gsscoder
Given:
mycmd.exe "test" --option "test"
produces:
whereas
mycmd.exe "test1" --option "test2"
works fine.
It's not apparent why passing the same value would cause commandline to behave differently.
The text was updated successfully, but these errors were encountered: