#!/usr/bin/env onyx

# Load the clopt module.
$modclopt mclass:singleton:load

# Subclass clopt and add option handlers.
$myopts clopt <
><
    #class#
    #- new #instance
    $new {
        ;rnew
        #instance
    } bind

    #instance#
    #- `--bang' -
    `--bang' {
	`This is an arror string' ;error_print
    } bind
> cdef

argv myopts:new:parse
