Make `--version` a non-global option?
Dieses Issue hat noch niemand übernommen.
- #143 von @mkniewallner — ohne Merge geschlossen
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start by tracing how Cleo registers global options and selects the default command. Compare poetry --version, poetry list --version, and poetry add httpx --version to identify the intended command-level behavior. Done means --version remains available for the default command, is rejected by add, and the breaking change is documented.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
As reported in https://github.com/python-poetry/poetry/issues/5128, --version is currently a global option in cleo.
This makes the behavior of some commands pretty weird, since passing --version to any command will exit the command early and print the version.
For instance, in the case of Poetry:
$ poetry add httpx --version
Poetry (version 1.2.0b2.dev0)
This also prevents this option from being used for commands in other contexts, as the original issue in Poetry reports.
Proposal
As this is still nice to have --version option, maybe the option could only be available for the default command?
That way, in the case of Poetry, doing either poetry --version or poetry list --version would display the version, but poetry add httpx --version would raise The option "--version" does not exist, and in the future, we would be able to add --version for specific commands if needed.
Though this proposal would definitely be a breaking change worth mentioning.
- Vorherrschende Sprache
- Python
- Sterne
- 1.4k
- Forks
- 108
- Ø Merge
- 15 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python-poetry/cleo
-
question
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#471 · 2 Kommentare ·
-
feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#467 · 1 Reaktion ·
-
Poetry run doesn't work with --directory=Evtl. vergeben @DSeaStar hat das vor 80 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
python-poetry/cleo#434 · 1 Kommentar ·
-
feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#433 · 4 Kommentare ·
-
Formatter's `is_decorated` property is temporarily disabled during `remove_format` breaking concurrent threadsEvtl. vergeben @ShipItAndPray hat das vor 189 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 40/100
python-poetry/cleo#423 · 9 Kommentare ·
Alle Issues in python-poetry/cleo
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
huggingface/smolagents#3106 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
area:scripts area:tests bug priority:later
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Ikalus1988/MisakaNet#4358 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Discovered ports from service discovery are never propagated to modules in Module.load()Evtl. vergeben @vishalmore90 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
OWASP/Nettacker#1828 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
aws-samples/sample-per-model-bedrock#708 ·
Maintainer antworten meist innerhalb von 1 Tag
-
maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100