Fixed adding support, text stuff.

This commit is contained in:
DWW 2021-12-21 20:11:40 +02:00
parent f03bcf7d89
commit 3715e1f156

View File

@ -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<string>& 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
{