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

cli param --version not working without a config.yml file #292

Open
muhgatus opened this issue Feb 14, 2024 · 0 comments
Open

cli param --version not working without a config.yml file #292

muhgatus opened this issue Feb 14, 2024 · 0 comments

Comments

@muhgatus
Copy link

muhgatus commented Feb 14, 2024

I guess this is not intended :)

# ./json_exporter --version
json_exporter: error: path 'config.yml' does not exist, try --help
# touch config.yml
# ./json_exporter --version
json_exporter, version 0.6.0 (branch: HEAD, revision: 2f9b473b83faf29da4050d12e5d510059b7475bb)
  build user:       root@51ced0102bcd
  build date:       20230606-02:44:54
  go version:       go1.20.4
  platform:         linux/amd64
  tags:             netgo static_build

or

# ./json_exporter --version --config.file=/etc/null
json_exporter, version 0.6.0 (branch: HEAD, revision: 2f9b473b83faf29da4050d12e5d510059b7475bb)
  build user:       root@51ced0102bcd
  build date:       20230606-02:44:54
  go version:       go1.20.4
  platform:         linux/amd64
  tags:             netgo static_build
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

1 participant