You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Slic3rPostProcessing/Program.cs
+76-48Lines changed: 76 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -62,31 +62,38 @@ private static int Main(string[] args)
62
62
63
63
ConsoleWidth=Logger.GetConsoleWidth();
64
64
65
-
varp=newOptionSet(){
66
-
{"i|input=","The {INPUTFILE} to process. "+Environment.NewLine+"If file extention is omitted, .gcode will be assumed.",
67
-
v =>strINputFile=v},
68
-
{"o|output=","The {OUTPUTFILE} filename. "+Environment.NewLine+"Optional. {INPUTFILE} will get overwritten if {OUTPUTFILE} is not specified. File extension will be added if omitted.",
69
-
v =>strOUTputFile=v},
70
-
{"c|counter=","Adds an export-counter to the FRONT of the filename."+Environment.NewLine+"{+ or -}; Default = + "+Environment.NewLine+"If the timestamp is set to true, too, then only the counter will be added.",
71
-
t =>booCounter=t!=null},
72
-
{"f|formatstamp=","{FORMAT} of the timestamp. "+Environment.NewLine+"Default: "+strTimeformat+Environment.NewLine+"(right now: "+DateTime.Now.ToString(strTimeformat)+")",
73
-
tf =>strTimeformat=tf},
74
-
{"s|stopbedheater=","Stops heating of the bed after this height in millimeter; Default = 0 = off",
75
-
(doubles)=>{if(s>=0)stopbeadheater=s;}},
76
-
{"t|timestamp=","Adds a timestamp to the END of the filename."+Environment.NewLine+"{+ or -}; Default = -",
77
-
t =>booTimestamp=t!=null},
78
-
{"v|verbosity=","Debug message verbosity. Default: "+verbosity+". "+Environment.NewLine+"{INT}:"+Environment.NewLine+"0 = Off "+Environment.NewLine+"1 = Error "+Environment.NewLine+"2 = Warning "+Environment.NewLine+"3 = Info "+Environment.NewLine+"4 = Verbose (will output EVERY line of GCode! There will be LOTS of output!)",
79
-
(intv)=>{if(v>=0&v<5)verbosity=v;}},
80
-
{"resetcounter=","Reset export-counter to zero and exit (3).",
81
-
t =>booResetCounter=t!=null},
82
-
{"h|help","Show this message and exit (2). Nothing will be done.",
83
-
v =>show_help=v!=null},
84
-
};
65
+
OptionSetos=newOptionSet();
66
+
os.Add("i|input=","The {INPUTFILE} to process. "+Environment.NewLine+"If file extention is omitted, .gcode will be assumed.",
67
+
v =>strINputFile=v);
68
+
69
+
os.Add("o|output=","The {OUTPUTFILE} filename. "+Environment.NewLine+"Optional. {INPUTFILE} will get overwritten if {OUTPUTFILE} is not specified. File extension will be added if omitted.",
70
+
v =>strOUTputFile=v);
71
+
72
+
os.Add("c|counter=","Adds an export-counter to the FRONT of the filename."+Environment.NewLine+"{+ or -}; Default = + "+Environment.NewLine+"If the timestamp is set to true, too, then only the counter will be added.",
73
+
t =>booCounter=t!=null);
74
+
75
+
os.Add("f|formatstamp=","{FORMAT} of the timestamp. "+Environment.NewLine+"Default: "+strTimeformat+Environment.NewLine+"(right now: "+DateTime.Now.ToString(strTimeformat)+")",
76
+
tf =>strTimeformat=tf);
77
+
78
+
os.Add("s|stopbedheater=","Stops heating of the bed after this height in millimeter; Default = 0 = off",
79
+
(doubles)=>{if(s>=0)stopbeadheater=s;});
80
+
81
+
os.Add("t|timestamp=","Adds a timestamp to the END of the filename."+Environment.NewLine+"{+ or -}; Default = -",
82
+
t =>booTimestamp=t!=null);
83
+
84
+
os.Add("v|verbosity=","Debug message verbosity. Default: "+verbosity+". "+Environment.NewLine+"{INT}:"+Environment.NewLine+"0 = Off "+Environment.NewLine+"1 = Error "+Environment.NewLine+"2 = Warning "+Environment.NewLine+"3 = Info "+Environment.NewLine+"4 = Verbose (will output EVERY line of GCode! There will be LOTS of output!)",
85
+
(intv)=>{if(v>=0&v<5)verbosity=v;});
86
+
87
+
os.Add("resetcounter=","Reset export-counter to zero and exit (3).",
88
+
t =>booResetCounter=t!=null);
89
+
90
+
os.Add("h|help","Show this message and exit (2). Nothing will be done.",
0 commit comments