🐛 CLI arg --context should not be positional

This commit is contained in:
Nikolai Røed Kristiansen
2024-10-17 10:45:35 +02:00
parent 2dbe44771b
commit 969a25dd40

View File

@@ -86,7 +86,7 @@ def parse_args() -> CLIArgs:
subparsers = parser.add_subparsers(dest="command", help="Sub-commands") subparsers = parser.add_subparsers(dest="command", help="Sub-commands")
# Dockerfile command # Dockerfile command
parser_dockerfile = subparsers.add_parser("dockerfile", help="Render a dockerfile based on version config") parser_dockerfile = subparsers.add_parser("dockerfile", help="Render a dockerfile based on version config")
parser_dockerfile.add_argument("context", default="", help="Dockerfile version config") parser_dockerfile.add_argument("--context", default="", help="Dockerfile version config")
# Build matrix command # Build matrix command
parser_build_matrix = subparsers.add_parser("build-matrix", help="Generate CI build matrix") parser_build_matrix = subparsers.add_parser("build-matrix", help="Generate CI build matrix")
parser_build_matrix.add_argument( parser_build_matrix.add_argument(