summaryrefslogtreecommitdiff
path: root/src/args.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-06-03 00:07:58 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-06-03 00:07:58 +0200
commit0cbc7dd8dd00c92570f35f901b820a1ea96acdf0 (patch)
tree7591b3cae8191a4bf4ec4092edb252c874792445 /src/args.hh
parent5bc49de682eec79f3dc8096c6812bee70fe2d496 (diff)
Add space separated argument parser with quoting
Diffstat (limited to 'src/args.hh')
-rw-r--r--src/args.hh22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/args.hh b/src/args.hh
new file mode 100644
index 0000000..7a0f4fc
--- /dev/null
+++ b/src/args.hh
@@ -0,0 +1,22 @@
+#ifndef ARGS_HH
+#define ARGS_HH
+
+#include <string>
+#include <vector>
+
+namespace stuff {
+
+class Args {
+public:
+ static bool parse(const std::string& input,
+ std::vector<std::string>* output,
+ bool nice = true);
+
+private:
+ Args() = delete;
+ ~Args() = delete;
+};
+
+} // namespace stuff
+
+#endif /* ARGS_HH */