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

How to pass binary directly? #209

Open
ra1u opened this issue Jul 10, 2022 · 3 comments
Open

How to pass binary directly? #209

ra1u opened this issue Jul 10, 2022 · 3 comments

Comments

@ra1u
Copy link

ra1u commented Jul 10, 2022

From first example in README

flamegraph /usr/bin/yes

would not expect to get error

    error: Found argument '/usr/bin/yes' which wasn't expected, or isn't valid in this context
    
    USAGE:
        flamegraph [OPTIONS] [-- <TRAILING_ARGUMENTS>...]
    
    For more information try --help
@djc
Copy link
Contributor

djc commented Jul 10, 2022

Note the -- before TRAILING_ARGUMENTS...

@ra1u
Copy link
Author

ra1u commented Jul 10, 2022

@djc in example there is

# if you'd like to profile an arbitrary executable:
flamegraph [-o my_flamegraph.svg] /path/to/my/binary --my-arg 5

I do not want to post arguments, but path to binary

@djc
Copy link
Contributor

djc commented Jul 25, 2022

Yeah, it seems unfortunately you still need to prefix the arguments with -- for now. Would be nice to get that fixed but it's not obvious to me right now how.

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

2 participants