Repository navigation
nmap C→Rust — M1: verbosity pulled forward (core::options -v/-d + core::log) - #3
Merged
Merged
Conversation
Integrate leveled verbosity/debugging early (before the scan modules) so every subsequent module is diagnosable during development — the CLI previously handled only --version and the sole hook was the binary NMAP_RS_TRACE env var. - core::options: RunConfig (the growing NmapOps analog) + faithful -v/-d parse (o.verbose/o.debugging, box(0,10,.)): -v/-vv increment, -vN sets, -d bumps both debugging AND verbose, --version/-h + positional targets; unknown flags are recorded (not silently dropped / mis-read as targets). Pure, panic-free. - core::log: leveled verbose!/debug! macros to STDERR (keeps stdout differential- clean); levels set once at startup. Complements trace! (env-gated, harness use). - cli: parse args -> log::init -> version/help/warn; verbosity is live. - PLAN.md: record verbosity pulled forward (module 3); tracker refreshed. Gates: fmt + clippy(-D) + 25 tests + unsafe-audit(0), and manual run checks: plain run emits zero stderr; -v prints verbose only; -d1 adds [nmap-rs debug]. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JfEzHqD7a7TKDuUs5GwZ2w
kj299
marked this pull request as ready for review
July 9, 2026 13:40
This was referenced Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
A Milestone 1 slice that pulls leveled verbosity/debugging forward — before the scan modules — so every module built afterward (
ports,net,connect_scan,output) is diagnosable during development. Previously the CLI handled only--versionand the sole hook was the binaryNMAP_RS_TRACEenv var.First use of the per-milestone-branch workflow (fresh branch off
master, always fast-forward).Changes
core::options—RunConfig, the growingNmapOpsanalog, with a faithful-v/-dparser (nmapo.verbose/o.debugging,box(0,10,·)):-v/-vv/-vvvincrement;-vNsets;--verbosebumps once.-d/-dd/-dNbump/set both debugging and verbose (matches nmap'so.debugging = o.verbose = …).--version,-h/--help, positional targets; unknown flags are recorded, never silently dropped or mis-read as targets.core::log— leveledverbose!/debug!macros to stderr (keeps stdout differential-clean); levels set once at startup. Complementstrace!(env-gated, for the harness).cli— parses args →log::init→ version/help/unknown-flag warnings; verbosity is live.PLAN.md— records verbosity pulled forward (now module 3 of the M1 loop); status tracker refreshed.Verified
-D warnings) + 25 unit tests + unsafe-audit (0 undocumented), all green.-vprints verbose output only;-d1adds[nmap-rs debug]diagnostics with the full parsed config.🤖 Generated with Claude Code
Generated by Claude Code