Noir::OptionsParsing
CLI option parsing: the legacy-alias rewrites, the --set-pvalue /
--include / --ai-context target tables, and the helpers that apply
them to the options hash.
These were eight top-level defs and five SCREAMING constants leaking
into every compilation unit — INCLUDE_TARGETS among them, under a
name generic enough to collide. run_options_parser stays
top-level: it is the CLI's entry point, same as detect_techs and
analysis_endpoints on the scan side.
Constants
Silently translate v0 flag spellings to their v1 storage. Keeping the
work here (instead of parser.on "--include-path") means the legacy
names no longer clutter noir scan -h, while every v0 script keeps
working untouched in v1.x.
Split TYPE=VAL (or bare VAL → all-types) and route it into the
right slot in noir_options. --pvalue may be repeated to set multiple
values across different types.
Instance methods
--ai-context[=LIST] always enables AI context output. An empty LIST
means "every category"; a non-empty LIST narrows the output to the
named categories.