mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
feat: test map count at boot
This commit is contained in:
parent
ba9d6e1d3b
commit
c2fc9b2cca
@ -5,12 +5,14 @@ import warnings
|
||||
from dzgui.const.constants import APP_NAME
|
||||
from dzgui.init.libgi import test_libgi_missing
|
||||
from dzgui.init.prefix import get_version
|
||||
from dzgui.util.map_count import set_map_count, test_map_count
|
||||
from dzgui.util.strings import flags
|
||||
|
||||
parser = argparse.ArgumentParser(description=flags.description)
|
||||
parser.add_argument("-v", "--version", action="store_true", help=flags.version)
|
||||
parser.add_argument("-u", "--uninstall", action="store_true", help=flags.uninstall)
|
||||
parser.add_argument("-d", "--debug", action="store_true", help=flags.debug)
|
||||
parser.add_argument("-m", "--map", action="store_true", help=flags.map_count)
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
@ -24,6 +26,7 @@ def uninstall() -> None:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
# TODO: isolate single flags
|
||||
if args.version is True:
|
||||
print(get_version())
|
||||
sys.exit(0)
|
||||
@ -32,7 +35,11 @@ def main() -> None:
|
||||
sys.exit(0)
|
||||
if args.debug is True:
|
||||
warnings.filterwarnings("default", category=DeprecationWarning)
|
||||
if args.map is True:
|
||||
set_map_count()
|
||||
sys.exit(0)
|
||||
|
||||
test_map_count()
|
||||
version = get_version()
|
||||
|
||||
print(f"{APP_NAME} {version}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user