Print help when running orca source #111

Merged
MartinFouilleul merged 1 commits from source-help into main 2023-09-16 20:52:21 +00:00
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)")