# Copyright (C) 2007, The Perl Foundation. # $Id: Auxiliary.pm 17579 2007-03-17 22:52:33Z paultcochrane $ package Parrot::Ops2c::Auxiliary; use strict; use warnings; use vars qw(@ISA @EXPORT_OK); @ISA = qw( Exporter ); @EXPORT_OK = qw( Usage getoptions ); use Getopt::Long qw(:config permute); sub Usage { my $usage_msg = < \$flags{nolines}, "help" => \$flags{help}, "dynamic|d" => \$flags{dynamic}, "core" => \$flags{core}, ); return \%flags; } 1; #################### DOCUMENTATION #################### =head1 NAME Parrot::Ops2c::Auxiliary - Non-method subroutines holding functionality for F. =head1 SYNOPSIS use Parrot::Ops2c::Auxiliary qw( Usage getoptions ); Usage(); $flagref = getoptions(); =cut =head1 DESCRIPTION Parrot::Ops2c::Auxiliary provides subroutines called by F, a program which is called at various points in the Parrot F process. This package is intended to hold subroutines used by that program I the object-oriented methods provided by Parrot::Ops2c::Utils. Extraction of the subroutines exported by this package from F facilitates the testing of their functionality by the tests in F. =head1 SUBROUTINES =head2 C =over 4 =item * Purpose Display a short description of how to use F on standard output. usage: tools/build/ops2pm.pl [--help] [--no-lines] input.ops [input2.ops ...] =item * Arguments None. =item * Return Value Implicitly returns true upon successful printing. =back =head2 C =over 4 =item * Purpose Process arguments provided on command-line to F. =item * Arguments None. =item * Return Value Hash reference where any of the following keys may or may not be defined. no-lines help renum =item * Comment A wrapper around Getopt::Long::GetOptions() designed to assure testability. =back =head1 AUTHOR Jim Keenan (refactoring code originally found in F). =head1 SEE ALSO =over 4 =item * Parrot::Ops2c::Utils. =item * F. =back =cut # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 100 # End: # vim: expandtab shiftwidth=4: