Skip to content

BUG/FEATURE REQUEST: "Param" does not support spaces #758

Open
@0lionelzhang0

Description

Script config in UI:
image

The test script:

from argparse import ArgumentParser


def parse_args():
    parser = ArgumentParser()
    parser.add_argument("--extra_label", nargs=2, action="append", metavar=("LABEL_NAME", "LABEL_VALUE"))
    return parser.parse_args()


args = parse_args()
print(args.extra_label)

Output error:
image

When I copy paste the command that was supposed run in the "HISTORY" menu, it runs successfully:
image


The suspected reason for error, is that there can't be spaces in the command ("result"). E.g. when I added the two lines that are commented below, it would work (and commenting out the original append option_name line).

image

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions