blib/lib/Acme/CPANModules/Getopt.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Acme::CPANModules::Getopt;
2  
3 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4 1 our $DATE = '2020-11-21'; # DATE
5 1 our $DIST = 'Acme-CPANModules-Getopt'; # DIST
6 1 our $VERSION = '0.002'; # VERSION
7  
8 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 our $LIST = {
13 summary => 'Modules that parse command-line options',
14 entry_features => {
15 uses_spec => {summary => 'Whether user need to specify some sort of "spec" (list of options and potentially more details)'},
16 uses_getopt_long => {summary => 'Whether module uses Getopt::Long (or is Getopt::Long itself)'},
17 auto_help => {summary => 'Whether the module can generate automatic help message (usually from spec) when user specifies something like --help'},
18 auto_version => {summary => 'Whether the module can generate automatic version message when user specifies something like --version'},
19 file => {summary => 'Whether the module supports getting options from a file'},
20 subcommand => {summary => 'Whether the module supports subcommands'},
21 },
22 entries => [
23 {
24 module => 'Getopt::Std',
25 features => {
26 uses_spec => 1,
27 uses_getopt_long => 0,
28 auto_help => {value=>0, summary=>'Only calls main::HELP_MESSAGE'},
29 auto_version => {value=>0, summary=>'Only calls main::VERSION_MESSAGE'},
30 },
31 },
32 {
33 module => 'Getopt::Long',
34 features => {
35 uses_spec => 1,
36 uses_getopt_long => 1,
37 auto_help => 1,
38 auto_version => 1,
39 },
40 },
41 {
42 module => 'Getopt::Tiny',
43 features => {
44 uses_spec => 1,
45 uses_getopt_long => 0,
46 auto_help => 0,
47 auto_version => 0,
48 },
49 },
50 {
51 module => 'Getopt::Long::Descriptive',
52 features => {
53 uses_spec => 1,
54 uses_getopt_long => 1,
55 auto_help => 1,
56 auto_version => 0,
57 },
58 },
59 {
60 module => 'Getopt::Long::More',
61 features => {
62 uses_spec => 1,
63 uses_getopt_long => 1,
64 auto_help => 1,
65 auto_version => 1,
66 file => 0, # planned
67 subcommand => 0, # planned
68 },
69 },
70 {
71 module => 'Getopt::Simple',
72 features => {
73 uses_spec => 1,
74 uses_getopt_long => 1,
75 auto_help => 1,
76 auto_version => 1,
77 },
78 },
79 {
80 module => 'Getopt::Compact',
81 features => {
82 uses_spec => 1,
83 uses_getopt_long => 1,
84 auto_help => 1,
85 auto_version => 1,
86 },
87 },
88 {
89 module => 'Opt::Imistic',
90 features => {
91 uses_spec => 0,
92 uses_getopt_long => 0,
93 auto_help => 0,
94 auto_version => 0,
95 },
96 },
97 {
98 module => 'Getopt::Valid',
99 features => {
100 uses_spec => 1,
101 uses_getopt_long => 1,
102 auto_help => 1,
103 auto_version => 1,
104 },
105 },
106 {
107 module => 'Getopt::Std::Strict',
108 features => {
109 uses_spec => 1,
110 uses_getopt_long => 0,
111 auto_help => 0,
112 auto_version => 0,
113 },
114 },
115 {
116 module => 'Getopt::Declare',
117 features => {
118 uses_spec => 1,
119 uses_getopt_long => 0,
120 auto_help => 1,
121 auto_version => 1,
122 },
123 },
124 {
125 module => 'Getopt::Euclid',
126 features => {
127 uses_spec => 1,
128 uses_getopt_long => 0,
129 auto_help => 1, # from POD
130 auto_version => 1, #from POD
131 },
132 },
133 {
134 module => 'Docopt',
135 features => {
136 uses_spec => 1,
137 uses_getopt_long => 0,
138 auto_help => 1,
139 auto_version => 1, #?
140 },
141 },
142 {
143 module => 'Getopt::Auto',
144 features => {
145 uses_spec => 1,
146 uses_getopt_long => 0,
147 auto_help => 1, # from POD
148 auto_version => 1, # from POD
149 },
150 },
151 {
152 module => 'Getopt::Lucid',
153 features => {
154 uses_spec => 1,
155 uses_getopt_long => 0,
156 auto_help => 0,
157 auto_version => 0,
158 },
159 },
160 {
161 module => 'Getopt::ArgvFile',
162 features => {
163 uses_spec => 1,
164 uses_getopt_long => 1,
165 auto_help => 1,
166 auto_version => 1,
167 file => 1,
168 },
169 },
170 {
171 module => 'App::Options',
172 features => {
173 uses_spec => 1,
174 uses_getopt_long => 0,
175 auto_help => 1,
176 auto_version => 1, #?
177 file => 1,
178 },
179 },
180 {
181 module => 'MooseX::Getopt',
182 features => {
183 uses_spec => 1,
184 uses_getopt_long => {value=>1, summary=>'Uses Getopt::Long::Descriptive'},
185 auto_help => 1,
186 auto_version => 1,
187 file => {value=>0, summary=>'Needs separate module: MooseX::ConfigFromFile or MooseX::SimpleConfig'},
188 },
189 },
190 {
191 module => 'MooX::Options',
192 features => {
193 uses_spec => 1,
194 uses_getopt_long => {value=>1, summary=>'Uses Getopt::Long::Descriptive'},
195 auto_help => 1,
196 auto_version => 0,
197 file => 1,
198 },
199 },
200 {
201 module => 'Getopt::Attribute',
202 features => {
203 uses_spec => 1,
204 uses_getopt_long => 1,
205 auto_help => 1,
206 auto_version => 1,
207 },
208 },
209 {
210 module => 'Getopt::Modular',
211 features => {
212 uses_spec => 1,
213 uses_getopt_long => 1,
214 auto_help => 1,
215 auto_version => 1,
216 },
217 },
218 # App::Cmd
219 # App::Spec
220 {
221 module => 'Smart::Options',
222 features => {
223 uses_spec => 1,
224 uses_getopt_long => 0,
225 auto_help => 1,
226 auto_version => 0,
227 subcommand => 1,
228 file => 1,
229 },
230 },
231 {
232 module => 'Getopt::ArgParse',
233 features => {
234 uses_spec => 1,
235 uses_getopt_long => 1,
236 auto_help => 0, #?
237 auto_version => 0, #?
238 subcommand => 1,
239 },
240 },
241 {
242 module => 'Getopt::Kingpin',
243 features => {
244 uses_spec => 1,
245 uses_getopt_long => 0,
246 auto_help => 1, #?
247 auto_version => 1, #?
248 subcommand => 1,
249 },
250 },
251 {
252 module => 'Getopt::Complete',
253 features => {
254 uses_spec => 1,
255 uses_getopt_long => 0,
256 auto_help => 0, #?
257 auto_version => 0, #?
258 },
259 },
260 {
261 module => 'Getopt::Long::Complete',
262 features => {
263 uses_spec => 1,
264 uses_getopt_long => 1,
265 auto_help => 1,
266 auto_version => 1,
267 },
268 },
269 {
270 module => 'Getopt::Long::Subcommand',
271 features => {
272 uses_spec => 1,
273 uses_getopt_long => 1,
274 auto_help => 1,
275 auto_version => 1,
276 subcommand => 1,
277 },
278 },
279 {
280 module => 'Getopt::Long::Less',
281 features => {
282 uses_spec => 1,
283 uses_getopt_long => 0,
284 auto_help => 0,
285 auto_version => 0,
286 },
287 },
288 {
289 module => 'Getopt::Long::EvenLess',
290 features => {
291 uses_spec => 1,
292 uses_getopt_long => 0,
293 auto_help => 0,
294 auto_version => 0,
295 },
296 },
297 # Getopt::Panjang
298 # Perinci::CmdLine
299 # ScriptX
300 ],
301  
302 };
303  
304 1 1;
305 # ABSTRACT: Modules that parse command-line options
306  
307 __END__
↑ Summary