6 Commits

Author SHA1 Message Date
ddidderr 4eb304bbf1 [release] hcn v2.0.0 2026-04-26 14:07:32 +02:00
ddidderr 04bb89375c feat(cli): parse arguments with clap
The binary now derives command-line parsing from clap instead of maintaining a
custom parser. SEARCH_LIMIT remains an optional positional argument and keeps
its default of 1_000_000_000, while clap now owns usage errors, --help, and
--version output.

The parser stores the limit as NonZeroU64 so zero is rejected before the search
starts. The existing CLI parsing tests now exercise clap directly, and the
README documents the generated help/version flags plus the top-level program
structure.

Test Plan:
- cargo clippy
- cargo clippy --benches
- cargo clippy --tests
- cargo test
- cargo run -- --help

Trailer:
Refs: local request to replace custom argument parsing with clap
Dependencies: none
2026-04-26 14:03:31 +02:00
ddidderr 0208637dd0 chore: update edition from 2021 to 2024 2026-04-26 13:33:03 +02:00
ddidderr d3615307d6 [release] hcn v1.0.0 2024-09-12 20:25:22 +02:00
ddidderr c31d2fda26 [clippy] stricter lints 2024-09-12 20:14:55 +02:00
ddidderr 3434c9d4f6 hcn: highly composite number
A tool to find highly composite numbers fast.
2023-12-02 09:19:34 +01:00