ArtemisDicoTiar / FastLLM

2 stars 1 forks source link

manage commands with fire #22

Closed jjkim0807 closed 11 months ago

jjkim0807 commented 11 months ago

Fixes #21

ArtemisDicoTiar commented 11 months ago

I think some of the files are outdated. I am wondering, how do the arguments injected with fire?

jjkim0807 commented 11 months ago

I think some of the files are outdated. I am wondering, how do the arguments injected with fire?

  1. I updated outdated files!

  2. like this! https://google.github.io/python-fire/guide/

    
    import fire

def add(x, y): return x + y

def multiply(x, y): return x * y

if name == 'main': fire.Fire()

$ python example.py add 10 20 30 $ python example.py multiply 10 20 200