spesmilo / spesmilo/electrum

Help output should be the same, --testnet or not

Open
#3,675 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🐞 CLI/RPC ▶ priority-low 🧊
Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Help should be the same, --testnet or not

$ ./electrum-ltc --testnet help|wc
     60      60    1065
$ ./electrum-ltc help|wc
     84     426    3989
$ ./electrum-ltc help signrequest|wc
     24      72     834
$ ./electrum-ltc --testnet help signrequest|wc
usage: electrum-ltc [-h] [-v] [-D ELECTRUM_PATH] [-P] [-w WALLET_PATH]
                    [--testnet] [--nossl]
                    <command> ...
electrum-ltc: error: unrecognized arguments: signrequest
      0       0       0

e.g., signrequest is a valid --testnet command. So help should not break.

Please see pooler/electrum-ltc#123 .

Contributor guide

No contributing guide indexed for this repository

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 reproducing the four help commands shown in the issue and inspect the command-line argument and help handling. The issue names no files or tests, so trace how --testnet changes command parsing. Done means help output is consistent with and without --testnet, and help signrequest works in testnet mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.