Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
QC_GetOpt.dox.h
1 namespace Qore {
4 
5 class GetOpt {
6 
7 public:
9 
36  constructor(hash options);
37 
38 public:
40 
42  copy();
43 
44 public:
46 
66 hash parse(reference pgm_args);
67 
68 public:
70 
88 hash parse(softlist pgm_args);
89 
90 public:
92 
113 hash parse2(reference pgm_args);
114 
115 public:
117 
138 hash parse2(softlist pgm_args);
139 
140 public:
142 
158 hash parse3(reference pgm_args);
159 
160 public:
162 
180 hash parse3(softlist pgm_args);
181 };
182 };
hash parse3(reference pgm_args)
Parses the parameter list according to the option hash passed to the constructor and displays an expl...
constructor(hash options)
Creates the GetOpt object and sets the option hash with the single required argument.
hash parse2(reference pgm_args)
Parses the parameter list according to the option hash passed to the constructor. ...
hash parse(reference pgm_args)
Parses the parameter list according to the option hash passed to the constructor. ...
copy()
Throws an exception; objects of this class cannot be copied.
hash hash(object obj)
Returns a hash of an object's members.
The GetOpt class provides an easy way to process POSIX-style command-line options in Qore scripts/pro...
Definition: QC_GetOpt.dox.h:5