stacks-network / stacks-network/stacks-core
[CLI] Refactor all CLI entrypoints to i.e. Clap
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 762
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 76
Description
While spending time in the code I've noticed that (I think) all CLI entrypoints are using manual parsing of command line arguments.
The code could be much cleaner and the CLI's more uniform if we refactored these to use a CLI arguments library (such as clap (155M downloads, one of the most popular libraries in the Rust ecosystem).
Not high prio, adding this as a placeholder so it exists and people can comment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inventorying the CLI entrypoints and locating where each manually parses command-line arguments. Review Clap's supported patterns and the existing CLI behavior before defining a migration scope. Done means the agreed entrypoints use a consistent Clap-based approach without changing their intended command behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100