feat: better state_handler
This commit is contained in:
11
diceplayer/cli/args_model.py
Normal file
11
diceplayer/cli/args_model.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ArgsModel(BaseModel):
|
||||
outfile: str
|
||||
infile: str
|
||||
continuation: bool
|
||||
|
||||
@classmethod
|
||||
def from_args(cls, args):
|
||||
return cls(**vars(args))
|
||||
Reference in New Issue
Block a user