mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 05:57:38 +02:00
[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:
parent
968a5d0471
commit
c20ecaadd2
2 changed files with 26 additions and 1 deletions
|
@ -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:])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue