Skip to content

bindgen --version unintuitively requires an input file for no apparent reason #3094

Closed
@pmj

Description

@pmj

bindgen --help says:

…
  -V, --version
          Prints the version, and exits
…

But when I run it, I get:

$ bindgen --version          
error: the following required arguments were not provided:
  <HEADER>

Usage: bindgen <FLAGS> <OPTIONS> <HEADER> -- <CLANG_ARGS>...

For more information, try '--help'.

As it turns out, I really do have to specify an input file as well:

% bindgen -V mycrate/src/defs.h 
bindgen 0.71.0

This seems a really odd and confusing requirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions