continued reorganisation

This commit is contained in:
Emile Clark-Boman 2025-06-21 21:29:00 +10:00
parent 6f8a7322f2
commit 0a2d9a5694
22 changed files with 190 additions and 61 deletions

21
bcrypter/cli/opt.py Normal file
View 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)