C#NDesk选项,标记有多个值

时间:2018-01-06 16:52:25

标签: c# visual-studio ndesk.options

想知道是否有人可以帮助我。在C#控制台应用程序中,使用NDESK.Options ,如果用户选择某个标志(对于此示例,请说"其他")我需要确保4值被传递(反过来将填充4个变量)。

示例:

app.exe -other «val1» «val2» «val3» «val4»

where val1 will be Username<br>
where val2 will be Hostname<br>
where val3 will be CurrIPAddr<br>
where val4 will be OSVer<br>

0 个答案:

没有答案