2019-04-13 17:46:04 +00:00
|
|
|
#pragma once
|
2019-03-19 12:49:37 +00:00
|
|
|
|
2019-04-27 13:45:39 +00:00
|
|
|
#include "shapes.hh"
|
|
|
|
|
2019-04-27 14:27:22 +00:00
|
|
|
#include <filesystem>
|
|
|
|
|
2019-04-27 13:45:39 +00:00
|
|
|
struct ParsedArgs {
|
2019-04-27 14:27:22 +00:00
|
|
|
std::filesystem::path input_path;
|
|
|
|
std::filesystem::path output_path;
|
2019-04-27 13:45:39 +00:00
|
|
|
Shape::ShapeType shape;
|
2019-04-27 14:27:22 +00:00
|
|
|
int iterations;
|
|
|
|
int method;
|
|
|
|
int cols;
|
|
|
|
int rows;
|
|
|
|
int submethod;
|
|
|
|
bool controlled_size;
|
|
|
|
bool verbose;
|
2019-04-27 13:45:39 +00:00
|
|
|
};
|
2019-03-19 12:49:37 +00:00
|
|
|
|
2019-04-14 01:58:49 +00:00
|
|
|
/// \brief Parses the arguments passed to the program
|
2019-04-27 14:27:22 +00:00
|
|
|
[[nodiscard]] auto parse_args(int, char **) -> ParsedArgs;
|