stacks-network / stacks-network/stacks-core

[CLI] Refactor all CLI entrypoints to i.e. Clap

Open
#4,045 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactoring stale
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.