Skip to content

Conversation

@xDimon
Copy link
Member

@xDimon xDimon commented Jan 23, 2026

Add metrics-* CLI args.
Deprecate prometheus-* CLI args.

Resolves #36

Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon requested review from kamilsa and turuslan January 23, 2026 10:49
@xDimon xDimon enabled auto-merge (squash) January 23, 2026 11:54
Comment on lines +898 to +900
if (find_argument(cli_values_map_, "metrics-host")) {
find_argument<std::string>(
cli_values_map_, "metrics-host", [&](const std::string &value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (find_argument(cli_values_map_, "metrics-host")) {
find_argument<std::string>(
cli_values_map_, "metrics-host", [&](const std::string &value) {
if (auto &&value = find_argument<std::string>(cli_values_map_, "metrics-host")) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template <typename T>
std::optional<T> find_argument_deprecated(boost::program_options::variables_map &vm,
                                 const std::string &name, const std::string &name, const std::string &deprecated_name) { ... }

auto arg_metrics_host = find_argument_deprecated(cli_values_map_, "metrics-host", "prometheus-host");

@xDimon xDimon merged commit e111275 into master Jan 23, 2026
7 checks passed
@xDimon xDimon deleted the refactor/deprecate_prometheus_args branch January 23, 2026 12:53
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

Successfully merging this pull request may close these issues.

qlean_0 fails with unrecognized flag

4 participants