Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
QC_GetOpt.dox.h
1
3namespace Qore {
5/***/
6class GetOpt {
7
8public:
10
38 constructor(hash<auto> options);
39
40public:
42
45
46public:
48
68hash<auto> parse(reference<list<string>> pgm_args);
69
70public:
72
89hash<auto> parse(softlist<auto> pgm_args);
90
91public:
93
113hash<auto> parse2(reference<list<string>> pgm_args);
114
115public:
117
137hash<auto> parse2(softlist<auto> pgm_args);
138
139public:
141
157hash<auto> parse3(reference<list<string>> pgm_args);
158
159public:
161
179hash<auto> parse3(softlist<auto> pgm_args);
180
181public:
183
229static hash<auto> parse(hash<auto> opts, reference<list<string>> pgm_args);
230
231public:
233
275static hash<auto> parseEx(hash<auto> opts, reference<list<string>> pgm_args);
276
277public:
279
321static hash<auto> parseExit(hash<auto> opts, reference<list<string>> pgm_args);
322};
323}
The GetOpt class provides an easy way to process POSIX-style command-line options in Qore scripts/pro...
Definition: QC_GetOpt.dox.h:6
hash< auto > parse(reference< list< string > > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
hash< auto > parse3(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor and displays an expl...
constructor(hash< auto > options)
Creates the GetOpt object and sets the option hash with the single required argument.
copy()
Throws an exception; objects of this class cannot be copied.
hash< auto > parse(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
hash< auto > parse2(softlist< auto > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
static hash< auto > parse(hash< auto > opts, reference< list< string > > pgm_args)
Parses the given options and returns a hash of the parsed options.
hash< auto > parse2(reference< list< string > > pgm_args)
Parses the parameter list according to the option hash passed to the constructor.
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...
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...
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 namespace.
Definition: QC_AbstractSmartLock.dox.h:2