| 1 | package Lab::Generic::CLOptions; | ||
| 2 | $Lab::Generic::CLOptions::VERSION = '3.899'; | ||
| 3 | #ABSTRACT: Global command line option processing | ||
| 4 | |||
| 5 | use v5.20; | ||
| 6 | |||
| 7 | use Getopt::Long qw/:config pass_through/; | ||
| 8 | |||
| 9 | our $DEBUG = 0; | ||
| 10 | our $IO_INTERFACE = undef; | ||
| 11 | |||
| 12 | GetOptions( | ||
| 13 | "debug|d" => \$DEBUG, | ||
| 14 | "terminal|t=s" => \$IO_INTERFACE | ||
| 15 | ) or die "error in CLOptions"; | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ |