Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win32 API command line arguments parsing

I'm writing Win32 console application, which can be started with optional arguments like this:

app.exe /argName1:"argValue" /argName2:"argValue"

Do I have to parse it manually (to be able to determine, which arguments are present) from argc/argv variables, or does Win32 API contain some arguments parser?

like image 643
tomas Avatar asked Oct 02 '12 11:10

tomas


1 Answers

There is no Win32 support for parsing command-line arguments.

See related articles at MSDN:
Parsing C++ Command-Line Arguments
Argument Definitions
Customizing C++ Command-Line Processing

also look at similar questions:
What parameter parser libraries are there for C++?
Parsing parameters to main()
Option Parsers for C/C++?
What's an effective way to parse command line parameters in C++?
...

like image 186
LihO Avatar answered Oct 01 '22 22:10

LihO