File Coverage

blib/lib/Lab/Generic/CLOptions.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             package Lab::Generic::CLOptions;
2             $Lab::Generic::CLOptions::VERSION = '3.881';
3             #ABSTRACT: Global command line option processing
4              
5 9     9   1953 use v5.20;
  9         34  
6              
7 9     9   6799 use Getopt::Long qw/:config pass_through/;
  9         103716  
  9         49  
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__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Lab::Generic::CLOptions - Global command line option processing
28              
29             =head1 VERSION
30              
31             version 3.881
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
36              
37             Copyright 2014 Andreas K. Huettel
38             2015 Christian Butschkow
39             2016 Simon Reinhardt
40             2017 Andreas K. Huettel
41             2019 Simon Reinhardt
42             2020 Andreas K. Huettel
43              
44              
45             This is free software; you can redistribute it and/or modify it under
46             the same terms as the Perl 5 programming language system itself.
47              
48             =cut