NAME ^

library/Getopt/Long.imc - parse command line options

SYNOPSIS ^

See examples/assembly/getopt_demo.imc

DESCRIPTION ^

This PIR library can be used for parsing command line options. A single subroutine, _get_options(), is provided.

SUBROUTINES ^

_get_options ^

This should work like the Perl5 module Getopt::Long. Takes an array of options and an array of specifications.

A PerlHash is returned.

TODO ^

Make it work for all cases, short options, long options and bundling Recognise type of return value: string, integer, binary, array, hash error reporting, more options

AUTHOR ^

Bernhard Schmalhofer - Bernhard.Schmalhofer@gmx.de

SEE ALSO ^

The Perl5 module Getopt::Long.

COPYRIGHT ^

Copyright (C) 2003 The Perl Foundation. All rights reserved. This program is free software. It is subject to the same license as The Parrot Interpreter.


parrot