* Run 'sparkd tests' outside of the CLI::App framework (delegate to 'catch', which has a solid cli). This fixes a bug which prevented callers from specifying test tags (in the form of '[<tag>]'), as the CLI::App's parse method removes square brackets from cli options. * Bind cli options to instance members of their subcommand's CLI::App derived class. This seems to fix a bug which caused the [static instance] binding source to be destructed twice. * Add help text for several subcommands
17 lines
238 B
C++
17 lines
238 B
C++
#pragma once
|
|
#include <CLI11/CLI11.hpp>
|
|
#include <memory>
|
|
|
|
namespace bts::cmds {
|
|
|
|
struct Web : public CLI::App {
|
|
Web();
|
|
~Web();
|
|
|
|
private:
|
|
struct Args;
|
|
std::unique_ptr<Args> _args;
|
|
};
|
|
|
|
} // namespace bts::cmds
|