Refactor attached option values
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start by reading the existing .next and .scanningForValue parsing strategies and how defaultAsFlag options generate help text. Trace how long options handle attached values, then check the relevant parsing and help tests. Done means the new strategy uses the default for --opt, accepts --opt=value including an empty value, leaves the next argument untouched, and renders --opt[=<value>] in generated help.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Refactor attached option values to support:
- Custom option name / value delimiters, e.g.,
--option=value,--option:value, etc.- Delimiters are planned to be single characters, not strings, but that can be changed upon request.
- Each option can support as many separators as desired (default is just
=), including none, which implements 2.1. below.
- Forbidding either:
- Attached option values, e.g., allow
--option value, but forbid--option=value. - Separated option values, e.g., allow
--option=value, but forbid--option value.
- Attached option values, e.g., allow
- The above for all parsing strategies.
Out of scope for the initial version, but probably nice to support eventually:
- Configuring a different default delimiter set instead of always defaulting to just
=. - Array option attached value element delimiters, e.g.,
,in--option=a,b,c.
Out of scope for the initial version, but probably shouldn't ever support:
- Configuring consumption of array option attached & separated values by 1 option "flag", e.g., in
--option=a,b,c d,--optionalways consumesa,b,cas a value, but does not consumed.
Versions
ArgumentParser version: 1.8.2 & main
- Lenguaje dominante
- Swift
- Estrellas
- 3.8k
- Forks
- 436
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 apple/swift-argument-parser
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apple/swift-argument-parser#1007 ·
Los mantenedores suelen responder en 3 días
-
Tool tests fail under the Swift Build build system because `generate-manual` & `generate-docc-reference` are not builtPosiblemente ocupada @rgoldberg la tomó hace 23 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apple/swift-argument-parser#995 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Consider making `String.wrapped()` and `Platform.terminalWidth` publicPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apple/swift-argument-parser#973 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Include hidden args in completion scriptsPosiblemente ocupada @Galileo927 la tomó hace 181 días. Abiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apple/swift-argument-parser#733 · 7 comentarios ·
Los mantenedores suelen responder en 3 días
-
Shared `@OptionGroup` flag is rejected after a subcommand when the root has a passthrough `defaultSubcommand`Posiblemente ocupada @sean0407 la tomó hace 22 días. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 48/100
apple/swift-argument-parser#994 ·
Los mantenedores suelen responder en 3 días
Todos los issues de apple/swift-argument-parser
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Ebullioscopic/Atoll#930 ·
Los mantenedores suelen responder en 2 días
-
area:development bug triage:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
vburojevic/hermes#123 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
jaywcjlove/awesome-mac#4631 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Muesli-HQ/muesli#764 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dynamic Island: "Tools" and "Files" are the Quick panel and the Shelf under other namesPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vorssaint/vorssaint-utils#4162 ·
Los mantenedores suelen responder en 2 días