diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-05-17 17:58:38 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-05-17 17:58:38 +0200 |
| commit | 577fc0845718ed8ad5bebf02a277c0579a817f77 (patch) | |
| tree | 3d1cdc53c426a0ba60a7996619a7b787850bb3b3 /source/app/wandac/src/cli.cpp | |
| parent | de5bf7ca3b7a2bf6be35b86486b00dc6a071b950 (diff) | |
| download | wanda-develop.tar.xz wanda-develop.zip | |
Diffstat (limited to 'source/app/wandac/src/cli.cpp')
| -rw-r--r-- | source/app/wandac/src/cli.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source/app/wandac/src/cli.cpp b/source/app/wandac/src/cli.cpp deleted file mode 100644 index 954ca63..0000000 --- a/source/app/wandac/src/cli.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "wandac/cli.hpp" - -#include <lyra/arg.hpp> -#include <lyra/help.hpp> - -#include <ostream> - -namespace wandac -{ - - auto cli::parse(lyra::args arguments, std::ostream & error_stream) -> bool - { - parser |= // - lyra::help(help) | // - lyra::arg{command, "command"}("The command to send to the deamon").required(); - - auto result = parser.parse(arguments); - - if (!result) - { - error_stream << "Error while processing command line arguments: " << result.message() << '\n' << parser << '\n'; - return false; - } - - return true; - } - - auto cli::print_usage(std::ostream & output_stream) -> void { output_stream << parser << '\n'; } - -} // namespace wandac |
