Print the usage for `prompuff <command> --help`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
Línea de trabajo
Empieza en src/Prompuff.Cli/CliApp.cs: lee CommandLine.Parse, su conjunto Flags y el manejo de opciones desconocidas; después, revisa la comprobación de ayuda al inicio de RunAsync. Añade pruebas en tests/Prompuff.Cli.Tests/CliTests.cs, cerca de Usage_mistakes_explain_themselves; ejecuta dotnet test tests/Prompuff.Cli.Tests. El trabajo estará terminado cuando --help y -h a nivel de comando muestren el uso y terminen con código de salida 0, -- siga protegiendo la palabra siguiente y las opciones desconocidas sigan terminando con código de salida 1.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
prompuff help, prompuff --help and prompuff -h print the usage, but only as the first word. prompuff render --help fails with "Prompuff doesn't know the option --help." and exit code 1, and that's the first thing many people try.
What to do
- When
--helpor-hcomes after a command, print the same usage text to stdout and exit 0, without opening the library. - Words after
--stay words, soprompuff get -- --helpstill looks for a prompt called--help. - Add
--helpto the Options list in the usage text.
Where to look
src/Prompuff.Cli/CliApp.cs:CommandLine.Parse(theFlagsset at line 15, the unknown-option error at line 76), and the help check at the top ofRunAsync(line 134).tests/Prompuff.Cli.Tests/CliTests.cs:Usage_mistakes_explain_themselves(line 188).
Done when
-
prompuff render --helpandprompuff search angular -hprint the usage and exit 0. -
prompuff get -- --helpstill looks up a prompt instead of printing the usage. -
prompuff list --frobstill fails with exit code 1. -
CliContractTestspasses unchanged. Nothing intests/*/Fixturesis edited.
Testing it
dotnet test tests/Prompuff.Cli.Tests
PROMPUFF_DATA_DIR=/tmp/prompuff-dev dotnet run --project src/Prompuff.Cli -- render --help
- Lenguaje dominante
- C#
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 1 h 21 min
- PR fusionados (30 d)
- 22
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hazeliscoding/prompuff
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hazeliscoding/prompuff#34 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hazeliscoding/prompuff#22 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
hazeliscoding/prompuff#14 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
hazeliscoding/prompuff#13 ·
Los mantenedores suelen responder en 1 día
-
TranslationsAbiertoenhancement later
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
hazeliscoding/prompuff#62 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hazeliscoding/prompuff
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Nimblesite/SharpLsp#468 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
elastic/ecs-dotnet#575 ·
-
V4 alert-rule reads have no scope gate, so any authenticated credential can list alert rulesAbiertoalerts bug effort:S P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nightscout/nocturne#2511 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
Crash in v3.00Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
arkane-systems/mousejiggler#140 ·