ArtemisDicoTiar / FastLLM

1 stars 0 forks source link

manage commands with fire #22

Closed jjkim0807 closed 7 months ago

jjkim0807 commented 7 months ago

Fixes #21

ArtemisDicoTiar commented 7 months ago

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

jjkim0807 commented 7 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