Loading...
Searching...
No Matches
QC_GetOpt.dox.h
namespace Qore {
/***/
class GetOpt {
public:
constructor(hash<auto> options);
public:
copy();
public:
hash<auto> parse(reference<list<string>> pgm_args);
public:
hash<auto> parse(softlist<auto> pgm_args);
public:
hash<auto> parse2(reference<list<string>> pgm_args);
public:
hash<auto> parse2(softlist<auto> pgm_args);
public:
hash<auto> parse3(reference<list<string>> pgm_args);
public:
hash<auto> parse3(softlist<auto> pgm_args);
public:
static hash<auto> parse(hash<auto> opts, reference<list<string>> pgm_args);
public:
static hash<auto> parseEx(hash<auto> opts, reference<list<string>> pgm_args);
public:
static hash<auto> parseExit(hash<auto> opts, reference<list<string>> pgm_args);
};
}
Qore::GetOpt
The GetOpt class provides an easy way to process POSIX-style command-line options in Qore scripts/pro...
Definition: QC_GetOpt.dox.h:6
Qore::GetOpt::parse
hash< auto > parse(reference< list< string > > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
Qore::GetOpt::parse3
hash< auto > parse3(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor and displays an expl...
Qore::GetOpt::constructor
constructor(hash< auto > options)
Creates the GetOpt object and sets the option hash with the single required argument.
Qore::GetOpt::copy
copy()
Throws an exception; objects of this class cannot be copied.
Qore::GetOpt::parse
hash< auto > parse(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
Qore::GetOpt::parse2
hash< auto > parse2(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
Qore::GetOpt::parse
static hash< auto > parse(hash< auto > opts, reference< list< string > > pgm_args)
Parses the given options and returns a hash of the parsed options.
Qore::GetOpt::parse2
hash< auto > parse2(reference< list< string > > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
Qore::GetOpt::parseExit
static hash< auto > parseExit(hash< auto > opts, reference< list< string > > pgm_args)
Parses the given options and returns a hash of the parsed options; prints out an error message and ex...
Qore::GetOpt::parse3
hash< auto > parse3(reference< list< string > > pgm_args)
Parses the parameter list according to the option hash passed to the constructor and displays an expl...
Qore::GetOpt::parseEx
static hash< auto > parseEx(hash< auto > opts, reference< list< string > > pgm_args)
Parses the given options and returns a hash of the parsed options and throws and exception if there a...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3