feature request: allow passing unparsed parameters
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 28.2k
- Forks
- 1.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
a common idiom in cli is to have a flag (usually --, but this is taken here) that all text afterwards is passed as is (mostly for passing to other commands)
it could be useful to have a similar feature in fire
for example:
> example.py foo --- this is passed as is - --
example.py:
```
import fire
def hello(name, __unparsed__):
print(name)
print(__unparsed__)
if __name__ == '__main__':
fire.Fire(hello)
```
will yield:
> foo
> this is passed as is - --
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.