Skip to content

Conversation

@qkrorlqr
Copy link
Collaborator

@qkrorlqr qkrorlqr commented Dec 11, 2025

ServiceKind = FromString<EServiceKind>(s);
});
.Handler1T<TString>([this](const auto& s)
{ ServiceKind = FromString<EServiceKind>(s); });
Copy link
Collaborator

Choose a reason for hiding this comment

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

По мне, так вот это форматирование выглялит довольно странно.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Это результат AllowShortLambdasOnASingleLine: inline
может стоит задать None,
тогда будет так:

    Opts.AddLongOption("service", "service to run")
        .RequiredArgument("{" + GetEnumAllNames<EServiceKind>() + "}")
        .DefaultValue(ToString(EServiceKind::Ydb))
        .Handler1T<TString>(
            [this](const auto& s)
            {
                ServiceKind = FromString<EServiceKind>(s);
            });

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.

4 participants