Update: dockerize externally, update --colored flag
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user