google / google/python-fire

arg parsing truncates at hash

Open
#338 4 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
28.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Fire's arg parser truncates strings with hashes (#) in them. Simple test:

test.py:
```
import fire
def test(a): print(a, type(a))
fire.Fire(test)
```

```
> python test.py hi#there
hi
> python test.py "hi#there"
hi
```

If this is by design, it doesn't appear to be documented anywhere.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.