We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i wonder if its possible to have optional args, i.e. for a argparse like:
parser.add_argument("--input_data", type=str, default="./output") parser.add_argument("--vis", action="store_true", help="vis prelabel result")
its possible to give or not give --vis in the launch file
--vis
"configurations": [ { "type": "debugpy", "request": "launch", "name": "Pdb: run.py", "stopOnEntry": false, "program": "${workspaceFolder}/run.py", "cwd": "${workspaceFolder}", "console": "integratedTerminal", "autoReload": { "enable": true }, "args": [ "--output_path", "${input:pipeline_output_path}/post_output", // "${input:extra_args}" ], } ], "compounds": [], "inputs": [ { "type": "promptString", "id": "pipeline_output_path", "description": "Enter the path to the pipeline output", "default": "/mnt/auto-labeling/e2e/autolabel/pipline_output" }, { "type": "pickString", "id": "extra_args", "description": "pick if input data is at128", "default": "", "options": [ "", "--vis" ] } ]
The text was updated successfully, but these errors were encountered:
Sorry but I'm not sure what you're asking. That input pattern works. And the debugger does pick up the args.
Sorry, something went wrong.
Yes, the debugpy does pick up the args, the question is, how can i NOT give a --vis arg without editing the launch profile?
I already tried "options": ["","--vis"], but it's resulting passing a "" arg to the python script, resulting in argparse error unknown arg .
"options": ["","--vis"]
""
unknown arg
judej
No branches or pull requests
i wonder if its possible to have optional args, i.e. for a argparse like:
its possible to give or not give
--vis
in the launch fileThe text was updated successfully, but these errors were encountered: