A global flag before a plugin name makes the plugin unreachable
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Start in cmd/soroban-cli/src/commands/plugin/default.rs around lines 64-70, where the plugin name is built from arguments up to the first one starting with --. Reproduce with a stellar-foo binary on PATH by running stellar -q foo a b and stellar --quiet foo a b, which should both reach the plugin. Done means those invocations run stellar-foo with "a b" while stellar foo -q a still passes -q a through unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What's wrong:
Global flags work before any built-in command, but not before a plugin. With CLI 28.1.0 and a plugin stellar-foo on PATH:
$ stellar foo a b # runs stellar-foo with "a b"
$ stellar foo -q a # runs stellar-foo with "-q a"
$ stellar -q foo a b
error: unrecognized subcommand 'foo'
$ stellar --quiet foo # same error, also for --verbose and --config-dir <dir>
Plugin lookup builds the plugin name from the arguments up to the first one starting with -- (v28.1.0 plugin/default.rs#L64-L70), so a leading --quiet leaves no name, and a leading -q becomes part of the name. This came in with multi-word plugin names (#2014), which didn't discuss global flags; it doesn't look deliberate.
Impact:
Scripts, wrappers and coding agents usually put global flags first (one hackathon repo wraps every call as stellar --quiet ...), and the error says the command doesn't exist, which reads as "plugin not installed". It becomes a common path once stellar contract bindings typescript is served by the JS SDK's plugin (#2758).
How we found it:
While reviewing the CLI plugin model for the HackMeridian 2026 tooling research (147 public hackathon repos), then reproduced with the 28.1.0 release binary on 1 November 2026. Example wrapper: LATCH scripts/testnet/bootstrap.mjs#L70-L72.
Outcome we're after:
A global flag placed before a plugin name doesn't stop the plugin from running, the same as for built-in commands. How to get there is up to the implementer.
Compatibility: Arguments after the plugin name keep reaching the plugin unchanged.
How to check:
stellar -q foo a bandstellar --quiet foo a brunstellar-foo.- A flag that takes a value, such as
--config-dir <dir> foo, also runs the plugin. stellar foo -q abehaves as today.
Related: #2014 (plugin subcommand lookup), #2758 (bindings plugin), #2343 (config and env precedence).
- Lingua principale
- Rust
- Stelle
- 129
- Fork
- 153
- Merge medio
- 1g 14h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stellar/stellar-cli
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stellar/stellar-cli#2887 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
stellar/stellar-cli#2880 ·
I maintainer di solito rispondono entro 1 giorno
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Forse già presa @hvoi l’ha presa 22 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stellar/stellar-cli#2806 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Forse di nuovo libera @duongynhi000005-oss l’ha presa 18 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
stellar/stellar-cli#2796 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Document stellar-cli's RPC trust boundaryForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
stellar/stellar-cli#2781 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stellar/stellar-cli
Issue simili
-
feature request good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
TabularisDB/tabularis#1513 ·
I maintainer di solito rispondono entro 2 giorni
-
bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
storytold/pdfcraft#7140 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
bug duplicate priority: low ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
storytold/vectorcraft#6956 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
PDF export issueApertabug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
storytold/designcraft#2712 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni