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