1 /*
2 Copyright 2020-2022 René Ferdinand Rivera Morell
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7 
8 #include <lyra/lyra.hpp>
9 #include "mini_test.hpp"
10 
main()11 int main()
12 {
13     using namespace lyra;
14     bfg::mini_test::scope test;
15     std::string name;
16     auto p = cli() | literal("one");
17 
18     test(REQUIRE(p.parse( { "TestApp", "one" } )));
19     test(REQUIRE(!p.parse( { "TestApp", "two" } )));
20     test(REQUIRE(!p.parse( { "TestApp", "one", "two" } )));
21     test(REQUIRE(!p.parse( { "TestApp", "two", "one" } )));
22 
23     return test;
24 }
25