Print help when running `orca source`

This commit is contained in:
Ben Visness 2023-09-16 15:46:00 -05:00
parent 5b7e27f9fd
commit bd780b20f3
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from .version import src_dir, orca_version
def attach_source_commands(subparsers):
source_cmd = subparsers.add_parser("source", help="Commands for helping compile the Orca source code into your project.")
source_sub = source_cmd.add_subparsers(title="commands")
source_sub = source_cmd.add_subparsers(required=True, title="commands")
cflags_cmd = source_sub.add_parser("cflags", help="Get help setting up a C or C++ compiler to compile the Orca source.")
cflags_cmd.add_argument("srcdir", nargs="?", default=src_dir(), help="the directory containing the Orca source code (defaults to system installation)")