12 lines
198 B
Python
12 lines
198 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class ArgsModel(BaseModel):
|
|
outfile: str
|
|
infile: str
|
|
continuation: bool
|
|
|
|
@classmethod
|
|
def from_args(cls, args):
|
|
return cls(**vars(args))
|