Skip to content

support multi-word arguments in run command #5417

@aryairani

Description

@aryairani

Is your feature request related to a problem? Please describe.
@etorreborre> How do you quote arguments with the run command? Say your command is run mymain "my first arg" "my second arg" and you want "my first arg" and "my second arg" to be passed as strings despite the spaces.

@kylegoetz> Best I can tell, it's not possible unless you Text.join with " " and then re parse. That's what I've been doing.

Previous attempt at #3878

Describe the solution you'd like
Devise and implement some quoting mechanism for run.

Also see #2805, #5193, relating to "numbered args" substitution, which we probably don't want at all for run, beyond the first arg that specifies the program to run.

Describe alternatives you've considered
A possible workaround by launching from the command-line, using the shell's treatment of quoted args also doesn't work, at minimum because we can't specify projects there yet, #4253

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions