continued reorganisation
This commit is contained in:
parent
6f8a7322f2
commit
0a2d9a5694
22 changed files with 190 additions and 61 deletions
21
bcrypter/cli/opt.py
Normal file
21
bcrypter/cli/opt.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from enum import Enum
|
||||
|
||||
class OptType(Enum):
|
||||
AbstractOpt # only used by Opt
|
||||
Flag
|
||||
Option
|
||||
|
||||
class Opt:
|
||||
_TYPE: OptType = OptType.AbstractOpt
|
||||
def __init__(self, *args) -> None:
|
||||
pass
|
||||
|
||||
class Flag(Opt):
|
||||
_TYPE: OptType = OptType.Flag
|
||||
def __init__(self, *args) -> None:
|
||||
super().__init__(*args)
|
||||
|
||||
class Option(Opt):
|
||||
_TYPE: OptType = OptType.Option
|
||||
def __init__(self, *args) -> None:
|
||||
super().__init__(*args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue