|
@@ -35,15 +35,43 @@ class BracedTemplate(string.Template):
|
|
|
def main() -> None:
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
|
|
- parser.add_argument("validation_path", metavar="config", type=pathlib.Path)
|
|
|
parser.add_argument(
|
|
|
- "--add-binary", dest="bin_mounts", type=BinaryMountSpec, action="append"
|
|
|
+ "validation_path",
|
|
|
+ metavar="config",
|
|
|
+ type=pathlib.Path,
|
|
|
+ help="Single INI file for validation or directory containing multiple INI files",
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "--add-binary",
|
|
|
+ dest="bin_mounts",
|
|
|
+ type=BinaryMountSpec,
|
|
|
+ action="append",
|
|
|
+ help="Path to a code binary that may be used for validation",
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "-o",
|
|
|
+ "--output-directory",
|
|
|
+ type=pathlib.Path,
|
|
|
+ help="Directory to place processed templates",
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "--match",
|
|
|
+ dest="matches",
|
|
|
+ type=str,
|
|
|
+ action="append",
|
|
|
+ help="Filters configs to only those that match the given substring",
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "--fail-fast",
|
|
|
+ action="store_true",
|
|
|
+ help="Stops processing this and other configs if a validation failure is received",
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "--only-failures", action="store_true", help="Only show failures for readability"
|
|
|
+ )
|
|
|
+ parser.add_argument(
|
|
|
+ "--show-summary", action="store_true", help="Outputs a list of changed files"
|
|
|
)
|
|
|
- parser.add_argument("-o", "--output-directory", type=pathlib.Path)
|
|
|
- parser.add_argument("--match", dest="matches", type=str, action="append")
|
|
|
- parser.add_argument("--fail-fast", action="store_true")
|
|
|
- parser.add_argument("--only-failures", action="store_true")
|
|
|
- parser.add_argument("--show-summary", action="store_true")
|
|
|
|
|
|
args = parser.parse_args()
|
|
|
|