NAME ^

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

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.imc.

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.imc


parrot