[app] Add --env-help command line option

Add a new CLI option to print the available Meshroom environment
variables and their descriptions.
This commit is contained in:
Yann Lanthony 2024-12-20 17:03:08 +01:00
parent 968a5d0471
commit c20ecaadd2
2 changed files with 26 additions and 1 deletions

View file

@ -17,7 +17,7 @@ from meshroom.core import nodesDesc
from meshroom.core.taskManager import TaskManager
from meshroom.common import Property, Variant, Signal, Slot
from meshroom.env import EnvVar
from meshroom.env import EnvVar, EnvVarHelpAction
from meshroom.ui import components
from meshroom.ui.components.clipboard import ClipboardHelper
@ -185,6 +185,14 @@ Additional Resources:
+ '\n'.join([' - ' + p for p in meshroom.core.pipelineTemplates]),
)
advanced_group = parser.add_argument_group("Advanced Options")
advanced_group.add_argument(
"--env-help",
action=EnvVarHelpAction,
nargs=0,
help=EnvVarHelpAction.DEFAULT_HELP,
)
return parser.parse_args(args[1:])