akumuli / Akumuli

Time-series database
http://akumuli.org
Apache License 2.0
836 stars 84 forks source link

"akumulid init" doesn't work without a pre-existing config file #368

Open smurfix opened 4 years ago

smurfix commented 4 years ago

Requiring a config file in order to write a config file seems … sub-optimal.

akumulid --config /tmp/test.cfg init
log4cxx: No appender could be found for logger (main).
log4cxx: Please initialize the log4cxx system properly.
FAILURE can't read config file "/tmp/test.cfg"
Lazin commented 4 years ago

This should work: akumulid --config=/tmp/foo.cfg --init. Why boost.program_options doesn't complain about unknown argument is beyond me. I'll try to fix error reporting in such cases.