cmyr / cargo-instruments

A cargo plugin to generate Xcode Instruments trace files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how do I pass flags to the target binary

vim-zz opened this issue · comments

I know of --args, but is there a way to pass flags to the target binary?

For example, lets say my binary have start command and --verbose flag, so usually I run it using cargo:

$ cargo run -- start --verbose 

How should I do that with cargo instruments?

@vim-zz it's currently a bit annoying, but you should be able to do,

$ cargo instruments --args '"-o --flag foo bar"'

Note that there are both single and double quotes around the args to be passed to the child.

great, good enough :-)