Qore Programming Language Reference Manual  0.8.12.2
 All Classes Namespaces Functions Variables Groups Pages
QC_GetOpt.dox.h
1 namespace Qore {
4 /***/
5 class GetOpt {
6 
7 public:
9 
37  constructor(hash options);
38 
39 public:
41 
43  copy();
44 
45 public:
47 
67 hash parse(reference pgm_args);
68 
69 public:
71 
89 hash parse(softlist pgm_args);
90 
91 public:
93 
114 hash parse2(reference pgm_args);
115 
116 public:
118 
139 hash parse2(softlist pgm_args);
140 
141 public:
143 
159 hash parse3(reference pgm_args);
160 
161 public:
163 
181 hash parse3(softlist pgm_args);
182 };
183 };
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