Qt wrapper class for GNU getopt.
Usage:
- specify options to check via
addOption()
andaddOptionWithArg()
calls. - run
parse()
with argument list orparseApplicationArgs()
. - check found options and it's arguments using
hasOption()
,getArg()
,getArgs()
, andcount()
methods.
Just put qgetopt.h
and qgetopt.cpp
in source dir and add them to Qt project file.
Requirements: only QtCore module.