|
|
|
@ -34,6 +34,7 @@ parser.add_argument("-rc", "-cl", "--collection", "--collections", "--run-collec
|
|
|
|
|
parser.add_argument("-rl", "-l", "--library", "--libraries", "--run-library", "--run-libraries", dest="libraries", help="Process only specified libraries (comma-separated list)", type=str)
|
|
|
|
|
parser.add_argument("-nc", "--no-countdown", dest="no_countdown", help="Run without displaying the countdown", action="store_true", default=False)
|
|
|
|
|
parser.add_argument("-nm", "--no-missing", dest="no_missing", help="Run without running the missing section", action="store_true", default=False)
|
|
|
|
|
parser.add_argument("-ro", "--read-only-config", dest="read_only_config", help="Config must be read only", action="store_true", default=False)
|
|
|
|
|
parser.add_argument("-d", "--divider", dest="divider", help="Character that divides the sections (Default: '=')", default="=", type=str)
|
|
|
|
|
parser.add_argument("-w", "--width", dest="width", help="Screen Width (Default: 100)", default=100, type=int)
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
@ -66,6 +67,7 @@ libraries = get_arg("PMM_LIBRARIES", args.libraries)
|
|
|
|
|
resume = get_arg("PMM_RESUME", args.resume)
|
|
|
|
|
no_countdown = get_arg("PMM_NO_COUNTDOWN", args.no_countdown, arg_bool=True)
|
|
|
|
|
no_missing = get_arg("PMM_NO_MISSING", args.no_missing, arg_bool=True)
|
|
|
|
|
read_only_config = get_arg("PMM_READ_ONLY_CONFIG", args.read_only_config, arg_bool=True)
|
|
|
|
|
divider = get_arg("PMM_DIVIDER", args.divider)
|
|
|
|
|
screen_width = get_arg("PMM_WIDTH", args.width, arg_int=True)
|
|
|
|
|
debug = get_arg("PMM_DEBUG", args.debug, arg_bool=True)
|
|
|
|
@ -153,6 +155,7 @@ def start(attrs):
|
|
|
|
|
logger.debug(f"--resume (PMM_RESUME): {resume}")
|
|
|
|
|
logger.debug(f"--no-countdown (PMM_NO_COUNTDOWN): {no_countdown}")
|
|
|
|
|
logger.debug(f"--no-missing (PMM_NO_MISSING): {no_missing}")
|
|
|
|
|
logger.debug(f"--read-only-config (PMM_READ_ONLY_CONFIG): {read_only_config}")
|
|
|
|
|
logger.debug(f"--divider (PMM_DIVIDER): {divider}")
|
|
|
|
|
logger.debug(f"--width (PMM_WIDTH): {screen_width}")
|
|
|
|
|
logger.debug(f"--debug (PMM_DEBUG): {debug}")
|
|
|
|
|