Mercurial > irccd
diff tests/src/irccdctl/cli-rule-add/main.cpp @ 850:688f28dd3241
irccd: remove short options, closes #1673
While here, use a brand new home made option parsing.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 16 Jul 2019 20:49:36 +0200 |
parents | 06cc2f95f479 |
children | eac2cc421f49 |
line wrap: on
line diff
--- a/tests/src/irccdctl/cli-rule-add/main.cpp Wed Jul 10 20:45:00 2019 +0200 +++ b/tests/src/irccdctl/cli-rule-add/main.cpp Tue Jul 16 20:49:36 2019 +0200 @@ -43,10 +43,10 @@ { const auto [code, out, err] = exec({ "rule-add", - "-c c1", "--add-channel c2", - "-e onMessage", "--add-event onCommand", - "-p p1", "--add-plugin p2", - "-s s1", "--add-server s2", + "-c c1", "-c c2", + "-e onMessage", "-e onCommand", + "-p p1", "-p p2", + "-s s1", "-s s2", "drop" }); @@ -75,7 +75,7 @@ start(); { - const auto [code, out, err] = exec({ "rule-add", "-s s1", "--add-server s2", "drop" }); + const auto [code, out, err] = exec({ "rule-add", "-s s1", "-s s2", "drop" }); BOOST_TEST(!code); BOOST_TEST(out.size() == 0U); @@ -102,7 +102,7 @@ start(); { - const auto [code, out, err] = exec({ "rule-add", "-c c1", "--add-channel c2", "drop" }); + const auto [code, out, err] = exec({ "rule-add", "-c c1", "-c c2", "drop" }); BOOST_TEST(!code); BOOST_TEST(out.size() == 0U); @@ -129,7 +129,7 @@ start(); { - const auto [code, out, err] = exec({ "rule-add", "-p p1", "--add-plugin p2", "drop" }); + const auto [code, out, err] = exec({ "rule-add", "-p p1", "-p p2", "drop" }); BOOST_TEST(!code); BOOST_TEST(out.size() == 0U); @@ -156,7 +156,7 @@ start(); { - const auto [code, out, err] = exec({ "rule-add", "-e onMessage", "--add-event onCommand", "drop" }); + const auto [code, out, err] = exec({ "rule-add", "-e onMessage", "-e onCommand", "drop" }); BOOST_TEST(!code); BOOST_TEST(out.size() == 0U); @@ -184,7 +184,7 @@ { start(); - const auto [code, out, err] = exec({ "rule-add", "-p p1", "--add-plugin p2", "break" }); + const auto [code, out, err] = exec({ "rule-add", "-p p1", "-p p2", "break" }); BOOST_TEST(code); BOOST_TEST(out.size() == 0U);