A global flag before a plugin name makes the plugin unreachable
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 62/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- Rust
- Étoiles
- 129
- Forks
- 153
- Merge moyen
- 1 j 14 h
- PR mergées (30 j)
- 11
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de stellar/stellar-cli
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
stellar/stellar-cli#2887 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
stellar/stellar-cli#2880 ·
Les mainteneurs répondent en général sous 1 jour
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Peut-être pris @hvoi l’a pris il y a 22 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
stellar/stellar-cli#2806 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Peut-être à nouveau libre @duongynhi000005-oss l’a pris il y a 18 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
stellar/stellar-cli#2796 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Document stellar-cli's RPC trust boundaryPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
stellar/stellar-cli#2781 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de stellar/stellar-cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
stellar/rs-stellar-xdr#621 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
Pin `scope.options.variant` on the `status-light` "Semantic (Dot)" / "Non-semantic (Dot)" relationshipsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertedesign-data-spec
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
adobe/spectrum-design-data#1755 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour