aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/getopt.tes
AgeCommit message (Collapse)AuthorFilesLines
2016-11-18standard lib: added getopt.tes for parsing command line options in scriptsRobin Haberkorn1-0/+52
* this uses an optstring compatible with getopt(3). * It does not use repeated getopt calls to iterate options, though but places the results in registers beginning with "getopt.". E.g. option "C" will result in "getopt.C" being set after the call to setopt. String arguments are supported and are placed in the string part of the getopt registers. * The grosciteco.tes and symbols-extract.tes scripts make use of getopt now, to simplify and clean up their command line handling.