summaryrefslogtreecommitdiff
path: root/src/cli.hh
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-07-03 19:44:59 -0700
committerFuwn <[email protected]>2022-07-03 19:44:59 -0700
commit9ab0f74aa643dc5d27508e9b2043f0c476f8f928 (patch)
tree28865c9003efc06615258a965b1d766386fb8805 /src/cli.hh
parentfix(cli): initialise padding (diff)
downloadcait-9ab0f74aa643dc5d27508e9b2043f0c476f8f928.tar.xz
cait-9ab0f74aa643dc5d27508e9b2043f0c476f8f928.zip
chore(ninja): rename src_dir
Diffstat (limited to 'src/cli.hh')
-rw-r--r--src/cli.hh47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/cli.hh b/src/cli.hh
deleted file mode 100644
index 155bbe5..0000000
--- a/src/cli.hh
+++ /dev/null
@@ -1,47 +0,0 @@
-// This file is part of Cait <https://github.com/Fuwn/cait>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
-#ifndef CLI_HH
-#define CLI_HH
-
-#include <iostream>
-#include <map>
-#include <optional>
-#include <string>
-
-namespace cait {
-
-class cli {
-private:
- int _argc;
- [[maybe_unused]] int padding = 0;
- char **_argv;
- std::map<std::string, std::optional<std::string>> options;
-
-public:
- cli(int, char **);
- // auto argc() const -> int;
- // auto argv() const -> char **;
- auto arg(int) -> std::optional<std::string>;
- auto option(const std::string &) -> std::optional<std::optional<std::string>>;
- auto look() -> int;
-};
-
-} // namespace cait
-
-#endif // CLI_HH