NAME
opentracing_wrapscope_generator - generate input for OpenTracing::WrapScope
SYNOPSIS
opentracing_wrapscope_generator --out wrapscope.conf --file 'lib/*.pm'
opentracing_wrapscope_generator --file 'bin/*.pl' --filter complexity=5
OPTIONS
--file $file_pattern
Shell file pattern for files to include in the search. Can be specified multiple times.
--ignore $file_pattern
Shell file pattern for files to ignore. Can be specified multiple times.
--include $subroutine
A subroutine name to unconditionally include in the results. Overrides all other settings. Can be specified multiple times.
--exclude $subroutine
A subroutine name to remove from the results. Can be specified multiple times.
--filter $filter_name[=$filter_argument]
A filter to apply. Currently supported filters:
exclude_private
Removes all subroutines starting with an underscore.
complexity=INT
Narrows down the results to subroutines with a cyclomatic complexity score greater than or equal than the argument. The argument is required.
Can be specified multiple times.
--out $filename
The filename where the resulting config file should be written. If this argument is not specified, results will be printed to standard output.
--spec $filename
The filename of a YAML file which contains options for this program in hash form. The keys correspond directly to options, most options can be specified multiple times and their values should be arrays in the YAML file.
For example, given this file:
wrapscope_gen_config.yaml
file: [ 'bin/*.pl', 'lib/*.pm' ]
filter: [ 'exclude_private' ]
ignore: [ 'Private*' ]
out: wrapscope_config.txt
calling:
opentracing_wrapscope_generator --spec wrapscope_gen_config.yaml
is equivalent to:
opentracing_wrapscope_generator \
--file 'bin/*.pl' \
--file 'lib/*.pm' \
--filter exclude_private \
--out wrapscope_config.txt \
--ignore 'Private*'
if other options are specified alongside a spec file, they will be merged.
--help
Show this help.