Skip to content

--version no longer works without <HEADER> argument #2677

Closed
felixonmars/archriscv-packages
#3209
@jbeich

Description

@jbeich

Regressed by #2656. Found via mesa@1cc26e8b6657 due to mesonbuild/meson@0f2f87a00347

$ bindgen --help | fgrep -A1 -- --version
  -V, --version
          Prints the version, and exits

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

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

For more information, try '--help'.

$ bindgen --version /dev/null
bindgen 0.69.0

Previously,

$ bindgen --version
bindgen 0.68.1

Activity

orhun

orhun commented on Nov 1, 2023

@orhun
Contributor

Also hit this while generating shell completions:

$ bindgen --generate-shell-completions bash

error: the following required arguments were not provided:
  <HEADER>

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

For more information, try '--help'.
added a commit that references this issue on Nov 1, 2023
fa9358c
erik-bershel

erik-bershel commented on Nov 2, 2023

@erik-bershel

Hey @orhun! How long it will take theoretically to fix this issue (to publish release)? We are blocked with an image generation for actions with this bug and thinking now about what to do next. To pin version of cli or to wait new release...

orhun

orhun commented on Nov 2, 2023

@orhun
Contributor

Hey @erik-bershel, I'm just an outside contributor so I'm not sure. The PR should be ready to go though.

added a commit that references this issue on Nov 2, 2023
added a commit that references this issue on Nov 2, 2023
added a commit that references this issue on Nov 2, 2023
d85878f
tshepang

tshepang commented on Nov 2, 2023

@tshepang
Member

@erik-bershel a fresh release is available with the issue fixed

jbeich

jbeich commented on Dec 7, 2024

@jbeich
Author

Please, reopen. Regressed again by #2984 (4d80917):

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

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

For more information, try '--help'.

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @tshepang@jbeich@orhun@erik-bershel

      Issue actions

        --version no longer works without <HEADER> argument · Issue #2677 · rust-lang/rust-bindgen