NAME ^

examples/assembly/getopt_demo.imc - demonstrating library/Getopt/Long.pir

SYNOPSIS ^

    % ./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

DESCRIPTION ^

This demo program shows how to handle command line arguments with the PIR library runtime/parrot/library/Getopt/Long.pir.

SUBROUTINES ^

main ^

This is executed when you call getopt_demo.imc.

usage ^

Print the usage message.

TODO: Pass a flag for EXIT_FAILURE and EXIT_SUCCESS

AUTHOR ^

Bernhard Schmalhofer - Bernhard.Schmalhofer@gmx.de

SEE ALSO ^

runtime/parrot/library/Getopt/Long.pir


parrot