Skip to content

[FEATURE REQUEST] typed arguments  #300

Description

@Nov1kov

If I write a typed variable argument, I am expecting an argument of a specific type.
Example:

import fire

def test(some_str: str):
    print(some_str)

if __name__ == "__main__":
    fire.Fire()

Real result:

python test.py test 7.30
7.3

Expected Result:

python test.py test 7.30
7.30

So this feature will not break argument parsing. The typed argument should be enough to detect the real type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions