Background
Split out from #52. DOCKSEC_LOG_LEVEL already exists as an env-var override for log verbosity (see docksec/utils.py:get_custom_logger), but there's no CLI flag for it — a user has to know the env var exists and set it separately from the docksec invocation.
Task
Add a -v/--verbose flag to the argparse parser in docksec/cli.py that is equivalent to setting DOCKSEC_LOG_LEVEL=INFO for the run (do this by setting os.environ["DOCKSEC_LOG_LEVEL"] = "INFO" early in main(), before any logger is created — follow the same pattern already used for --provider/--model writing to LLM_PROVIDER/LLM_MODEL env vars around cli.py:78-80).
Acceptance criteria
Pointers
docksec/cli.py — argparse setup, look at how --compact-output sets DOCKSEC_COMPACT_OUTPUT
docksec/utils.py:get_custom_logger — the level resolution logic this flag needs to influence
Background
Split out from #52.
DOCKSEC_LOG_LEVELalready exists as an env-var override for log verbosity (seedocksec/utils.py:get_custom_logger), but there's no CLI flag for it — a user has to know the env var exists and set it separately from thedocksecinvocation.Task
Add a
-v/--verboseflag to the argparse parser indocksec/cli.pythat is equivalent to settingDOCKSEC_LOG_LEVEL=INFOfor the run (do this by settingos.environ["DOCKSEC_LOG_LEVEL"] = "INFO"early inmain(), before any logger is created — follow the same pattern already used for--provider/--modelwriting toLLM_PROVIDER/LLM_MODELenv vars around cli.py:78-80).Acceptance criteria
docksec Dockerfile --scan-only -vshows INFO-level log lines on stderr that are normally suppressed in CLI mode-v, behavior is unchanged (still defaults to ERROR-only in CLI mode)DOCKSEC_LOG_LEVELenv var set by the user still takes priority over-v(i.e. don't clobber it if already set)--helpdocuments the flagtests/test_cli.pycovers the flag being parsed and setting the env var as expectedPointers
docksec/cli.py— argparse setup, look at how--compact-outputsetsDOCKSEC_COMPACT_OUTPUTdocksec/utils.py:get_custom_logger— the level resolution logic this flag needs to influence