47
47
biometry::cmds::Test::Test()
48
: CommandWithFlagsAndAction{cli::Name{"test"}, cli::Usage{"executes runtime tests for a device"}, cli::Description{"executes runtime tests for a device"}},
48
: CommandWithFlagsAndAction{cli::Name{"test"}, cli::Usage{"executes runtime tests for a device"}, cli::Description{"executes runtime tests for a device"}}
51
50
flag(cli::make_flag(cli::Name{"config"}, cli::Description{"configuration file for the test"}, config));
52
flag(cli::make_flag(cli::Name{"user"}, cli::Description{"The numeric user id for testing purposes"}, user));
51
flag(cli::make_flag(cli::Name{"user"}, cli::Description{"The numeric user id for testing purposes"}, user = biometry::User::current()));
52
flag(cli::make_flag(cli::Name{"trials"}, cli::Description{"Number of identification trials"}, trials = 20));
53
54
action([this](const cli::Command::Context& ctxt)
55
56
if (not config) throw cli::Command::FlagsMissing{};