diff --git a/main.cpp b/main.cpp index 7662a15..7acdf8a 100644 --- a/main.cpp +++ b/main.cpp @@ -57,12 +57,12 @@ int main(int argc, char **argv) // Bottom pattern choices command += " --bottom-infill-pattern \""; - command += choose_pattern("Bottom Infill"); + command += choose_pattern("bottom infill"); command += "\""; // Top pattern choices command += " --top-infill-pattern \""; - command += choose_pattern("Top Infill"); + command += choose_pattern("top infill"); command += "\""; // Add filename @@ -186,11 +186,11 @@ string pick_option(const string& name, const vector& options) return options[0]; } - printf("Choose %s configuration:\n", name.c_str()); + printf("Choose %s:\n", name.c_str()); i = 1; for (it = options.begin(); it != options.end(); ++it) { - printf("%-2d - %s\n", i, it->c_str()); + printf("%2d - %s\n", i, it->c_str()); ++i; } @@ -220,9 +220,9 @@ string choose_support() options.push_back("Do not generate support"); options.push_back("Generate support"); - if (pick_option("Support", options) == options[1]) + if (pick_option("support", options) == options[1]) { - return "--support-material"; + return " --support-material"; } else {