Update: dockerize externally, update --colored flag

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-08-09 06:41:41 +02:00
parent be404eb5e3
commit 27057beed4
5 changed files with 4 additions and 41 deletions

View File

@@ -36,7 +36,7 @@ def parse_args():
parser.add_argument(
'--base-dir', help = 'path to directory containing whole cloner structure', required = True,
default = None, type = str)
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected")
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected", action = "store_true")
args = parser.parse_args()
base_dir = Path(args.base_dir)

View File

@@ -85,7 +85,7 @@ def main() -> int:
parser.add_argument("target", help = "path where to checkout")
parser.add_argument("--checkout", help = "checkout this reference, otherwise default HEAD will be left")
parser.add_argument('--debug', '-d', help = "enable debug output", action = 'store_true')
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected")
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected", action = "store_true")
args = parser.parse_args()
if args.debug:
log.info(f"Setting loglevel to debug")

View File

@@ -107,7 +107,7 @@ def main() -> int:
parser.add_argument('--base-dir', help = 'path to directory containing whole cloner structure', required = True,
default = None, type = str)
parser.add_argument('--debug', '-d', help = "enable debug output", action = 'store_true')
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected")
parser.add_argument('--colored', help = "enable colored log output even tty() is not detected", action = "store_true")
args = parser.parse_args()
if args.debug:
log.setLevel(logging.DEBUG)