Qore Programming Language Reference Manual  0.8.13.6
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<list<string>> pgm_args);
68 
69 public:
71 
89 hash parse(softlist pgm_args);
90 
91 public:
93 
114 hash parse2(reference<list<string>> pgm_args);
115 
116 public:
118 
139 hash parse2(softlist pgm_args);
140 
141 public:
143 
159 hash parse3(reference<list<string>> pgm_args);
160 
161 public:
163 
181 hash parse3(softlist pgm_args);
182 };
183 };
constructor(hash options)
Creates the GetOpt object and sets the option hash with the single required argument.
hash parse2(reference< list< string >> pgm_args)
Parses the parameter list according to the option hash passed to the constructor. ...
hash parse3(reference< list< string >> pgm_args)
Parses the parameter list according to the option hash passed to the constructor and displays an expl...
hash parse(reference< list< string >> 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.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
hash hash(object obj)
Returns a hash of an object&#39;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