How can I pass the arguments val
and code
to the group get
Code so far
import fire
class Get:
def __init__(self, val="no", code=""):
self.val = val
self.code = code
def get(self):
return f"called get {self.val} {self.code}"
def get_many(self):
return f"called get many {self.val}"
class Pipeline:
def __init__(self,):
self.get = Get()
def main():
fire.Fire(Pipeline)
The error I Got
$> my_p get --code="test" --val="yes" get
ERROR: Could not consume arg: --code=test
Usage: my_p get get <command>