def _validate_args()

in quant/common/parser.py [0:0]


def _validate_args(args: Namespace) -> None:
    """
    Validate arguments.

    Args:
        args:  parsed argparse CLI args
    """
    if not args.restore_experiment and not args.config:
        raise ValueError('--config must be specified if not restoring from experiment.')

    if args.restore_experiment and args.init_from_checkpoint:
        raise ValueError('Only one of --restore-experiment / --init-from-checkpoint can be set.')