From a8c6a4ef491a9f48b5141dca2fe138b6b6789332 Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Tue, 18 Jun 2024 11:42:50 +0300 Subject: [PATCH] crispy: compat --- dotman.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotman.py b/dotman.py index ef4bcc3..0d408c3 100755 --- a/dotman.py +++ b/dotman.py @@ -30,7 +30,6 @@ import os import shutil import tomllib import sys -from datetime import datetime as dt from git.repo import Repo from crispy.crispy import Crispy @@ -208,8 +207,8 @@ def main(): c.add_variable('deploy', bool) c.add_variable('tag', str) - args = c.parse_arguments(sys.argv[1:]) - + args = c.parse_arguments(sys.argv[1:])[1] + if args['backup'] and args['deploy']: util_errout('[ERR] can\'t do both, sorry :(', 11) elif args['backup']: @@ -238,4 +237,5 @@ if __name__ == '__main__': # 2. create a new commit and push # 3. if tag is specified, check if tag exists # 1. if tag does not exist, create tag and push -# 2. if tag exists, warn and exit \ No newline at end of file +# 2. if tag exists, warn and exit +