in tracking/translations_parser/cli/taskcluster.py [0:0]
def get_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
description="Extract information from Marian execution on Task Cluster"
)
input_group = parser.add_mutually_exclusive_group()
input_group.add_argument(
"--input-file",
"-i",
help="Path to the Task Cluster log file.",
type=Path,
default=None,
)
input_group.add_argument(
"--from-stream",
"-s",
help="Read lines from stdin stream.",
action="store_true",
)
parser.add_argument(
"--output-dir",
"-o",
help="Output directory to export training and validation data as CSV.",
type=Path,
default=Path(__file__).parent.parent / "output",
)
parser.add_argument(
"--verbose",
"-v",
help="Print debug messages.",
action="store_const",
dest="loglevel",
const=logging.DEBUG,
)
parser.add_argument(
"--publish-group-logs",
help=(
"Enable publishing a group_logs fake run with the experiment configuration."
"This option requires W&B publication to be enabled, otherwise it will be ignored."
),
action="store_true",
default=False,
)
# Extend parser with Weight & Biases CLI args
add_wandb_arguments(parser)
return parser.parse_args()