mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
Removing set_ for failure_message, footer, name, and callback
This commit is contained in:
committed by
Henry Schreiner
parent
bf2bc39c30
commit
b2e471ac4d
@@ -24,7 +24,7 @@ TEST(THelp, Basic) {
|
||||
|
||||
TEST(THelp, Footer) {
|
||||
CLI::App app{"My prog"};
|
||||
app.set_footer("Report bugs to bugs@example.com");
|
||||
app.footer("Report bugs to bugs@example.com");
|
||||
|
||||
std::string help = app.help();
|
||||
|
||||
@@ -128,7 +128,7 @@ TEST(THelp, VectorOpts) {
|
||||
|
||||
TEST(THelp, MultiPosOpts) {
|
||||
CLI::App app{"My prog"};
|
||||
app.set_name("program");
|
||||
app.name("program");
|
||||
std::vector<int> x, y;
|
||||
app.add_option("quick", x, "Disc")->expected(2);
|
||||
app.add_option("vals", y, "Other");
|
||||
@@ -535,7 +535,7 @@ TEST_F(CapturedHelp, NormalError) {
|
||||
}
|
||||
|
||||
TEST_F(CapturedHelp, RepacedError) {
|
||||
app.set_failure_message(CLI::FailureMessage::help);
|
||||
app.failure_message(CLI::FailureMessage::help);
|
||||
|
||||
EXPECT_EQ(run(CLI::ExtrasError({"Thing"})), static_cast<int>(CLI::ExitCodes::ExtrasError));
|
||||
EXPECT_EQ(out.str(), "");
|
||||
|
||||
Reference in New Issue
Block a user