qcommandlineparser

Parse command line arguments/options in C#

陌路散爱 提交于 2019-12-24 09:25:52
问题 I have a console application with some arguments and options so I would like to use a free third-party library. I have found two libraries for this purpose: NDesk.Options and Command Line Parser Library Finally I have decided to use Command Line Parser Library because it is clearer using properties so I have downloaded it and added a reference to it. The problem is that when adding the reference to my .NET Framework 3.5 project I get a warning icon. From the above page where I have downloaded

How to use QCommandLineParser for arguments with multiple params?

那年仲夏 提交于 2019-12-22 04:58:41
问题 I wonder, how can I use multiple- or sub-arguments with QCommandLineParser? For example: /home/my_app --my_option_with_two_params first_param second_param --my-option-with-one-param param? 回答1: Try this which has the analogy of -I /my/include/path1 -I /my/include/path2 : --my_option_with_two_params first_param --my_option_with_two_params second_param ... and then you can use this method to have access to the values: QStringList QCommandLineParser::values(const QString & optionName) const

How to use QCommandLineParser for arguments with multiple params?

久未见 提交于 2019-12-05 04:46:40
I wonder, how can I use multiple- or sub-arguments with QCommandLineParser ? For example: /home/my_app --my_option_with_two_params first_param second_param --my-option-with-one-param param? Try this which has the analogy of -I /my/include/path1 -I /my/include/path2 : --my_option_with_two_params first_param --my_option_with_two_params second_param ... and then you can use this method to have access to the values: QStringList QCommandLineParser::values(const QString & optionName) const Returns a list of option values found for the given option name optionName, or an empty list if not found. The