Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows style getopt/argp

Tags:

c++

windows

Is there a windows equivalent to getopt or argp that simplifies the writing of a windows command line tool?

It should contain argument parsing and enforcing the Windows style of argument syntax and perhaps providing assistance to syntax for executors.

The windows command line tools has a certain style that makes me think there is such a tool. The SO questions I have found indicates that translations of getopt are my best bet.

like image 933
Captain Giraffe Avatar asked Jan 27 '26 16:01

Captain Giraffe


1 Answers

You can use Boost Program Options

http://www.boost.org/doc/libs/1_53_0/doc/html/program_options.html

like image 85
Alexandre C. Avatar answered Jan 30 '26 04:01

Alexandre C.