2025-03-03 17:19:12 -05:00
|
|
|
"""Manages the CLI component of the tool."""
|
|
|
|
|
2024-07-29 18:29:54 -04:00
|
|
|
import argparse
|
|
|
|
|
|
|
|
|
2025-03-01 23:29:49 -05:00
|
|
|
def parse_inputs() -> argparse.Namespace:
|
2025-03-03 17:19:12 -05:00
|
|
|
"""Parse inputs from argparse.
|
|
|
|
|
|
|
|
:returns the argparse Namespace to be evaluated
|
|
|
|
"""
|
2024-07-29 18:29:54 -04:00
|
|
|
parser = argparse.ArgumentParser()
|
2024-08-04 11:24:38 -04:00
|
|
|
parser.add_argument("flake_path", metavar="flake-path", help="path to flake to evaluate")
|
2025-03-03 17:19:12 -05:00
|
|
|
parser.add_argument("--keep-hydra", action="store_true", help="retain Hydra jobs")
|
|
|
|
parser.add_argument("--build", action="store_true", help="allow building Hydra jobs")
|
|
|
|
parser.add_argument("--evaluate", action="store_true", help="allow evaluating Hydra jobs")
|
|
|
|
return parser.parse_args()
|