Skip to content

mrmoje/QArgParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QArgParser <- A pint-sized argument parser lib for QT..(should be a gist)

USAGE EXAMPLE
command line args:-

you@yourbox:~$ ./myApp  firstKey=Value1 --secondKey Value2 thirdKey=val3.1,val3.2,val3.3 --enable-foo

Code:-

QString param1   = QArgByKey("firstkey",'='); // Returns `Value1` from first pair
QString param2   = QArgByKey("--secondkey"); // Returns `Value2` from second pair
QString param3-1 = QArgByKey("thirdkey",'=').split(',').at(0); // Returns `val3.1`
bool fooEnabled  = qApp->arguments().contains("--enable-foo"); //To check for `--enable-foo`

About

A pint-sized argument parser lib for QT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages