Skip to content
New issue

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

Comma-separated arguments seem to be split with rustup run #665

Closed
alexcrichton opened this issue Aug 19, 2016 · 4 comments
Closed

Comma-separated arguments seem to be split with rustup run #665

alexcrichton opened this issue Aug 19, 2016 · 4 comments

Comments

@alexcrichton
Copy link
Member

Whenever I use rustup run it seems to interfere with comma-separated arguments:

$ rustup run stable rustc --emit llvm-ir,link foo.rs
error: multiple input filenames provided

$ rustc --emit llvm-ir,link foo.rs
$

Is there perhaps something going on with the rustup option parser?

@Diggsey
Copy link
Contributor

Diggsey commented Aug 19, 2016

Does separating it with -- help?

edit: Hmm no, seems like a problem with clap?

@kbknapp
Copy link
Contributor

kbknapp commented Aug 20, 2016

You need to add use_delimiter(false) to this line.

Detailed info.

@Diggsey
Copy link
Contributor

Diggsey commented Aug 20, 2016

@kbknapp Ah, thanks - will this combination ensure that the remaining arguments are passed through unaltered in all cases?

@kbknapp
Copy link
Contributor

kbknapp commented Aug 20, 2016

@Diggsey yes, by default arguments with a comma are separated into distinct arguments, i.e. --option 'one,two,three' becomes --option 'one' 'two' 'three'

The setting linked above says, don't use a delimiter at all. The delimiter can alternatively be changed a character other than a comma as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants