parrotcode: demonstrating library/Getopt/Long.pir | |
Contents | Examples |
examples/assembly/getopt_demo.imc - demonstrating library/Getopt/Long.pir
% ./parrot examples/assembly/getopt_demo.imc --help
% ./parrot examples/assembly/getopt_demo.imc --version
% ./parrot examples/assembly/getopt_demo.imc --string=asdf --bool --integer=42 some thing
This demo program shows how to handle command line arguments with the PIR library runtime/parrot/library/Getopt/Long.pir.
This is executed when you call getopt_demo.imc.
Print the usage message.
TODO: Pass a flag for EXIT_FAILURE and EXIT_SUCCESS
Bernhard Schmalhofer - Bernhard.Schmalhofer@gmx.de
|