diff --git a/3rdParty/TCLAP b/3rdParty/TCLAP index 8c39606a..09767301 160000 --- a/3rdParty/TCLAP +++ b/3rdParty/TCLAP @@ -1 +1 @@ -Subproject commit 8c39606abdac5194932829781435fb6bc43513e6 +Subproject commit 09767301204c39d424a6d308d1a9212d04736d5f diff --git a/MK404.cpp b/MK404.cpp index 3eb0cc65..73365dcb 100644 --- a/MK404.cpp +++ b/MK404.cpp @@ -329,9 +329,9 @@ int main(int argc, char *argv[]) SwitchArg argTest("","test","Run it test mode (don't auto-exit due to lack of GL event loop and waiting for the window to close)", cmd); SwitchArg argSkew("","skew-correct","Attempt to correct for fast clock skew of the simulated board", cmd); SwitchArg argSerial("s","serial","Connect a printer's serial port to a PTY instead of printing its output to the console.", cmd); - ValueArg argSD("","sdimage","Use the given SD card .img file instead of the default", false ,"", "file:*.img|*.bin", cmd); + ValueArg argSD("","sdimage","Use the given SD card .img file instead of the default", false ,"", "file:img|bin", cmd); SwitchArg argScriptHelp("","scripthelp", "Prints the available scripting commands for the current printer/context",cmd, false); - ValueArg argScript("","script","Execute the given script. Use --scripthelp for syntax.", false ,"", "file:*.txt", cmd); + ValueArg argScript("","script","Execute the given script. Use --scripthelp for syntax.", false ,"", "file:txt", cmd); std::vector vstrEnabled = EnabledType::GetOpts(); ValuesConstraint vcEnabledOpts(vstrEnabled); ValueArg argSoftPWM("p","softPWM","enable/disable software PWM (currently only valid for MK2)",false,"",&vcEnabledOpts,cmd); @@ -350,8 +350,8 @@ int main(int argc, char *argv[]) std::vector vstrGfx = {"none","lite","fancy", "bear"}; ValuesConstraint vcGfxAllowed(vstrGfx); ValueArg argGfx("g","graphics","Whether to enable fancy (advanced) or lite (minimal advanced) visuals. If not specified, only the basic 2D visuals are shown.",false,"lite",&vcGfxAllowed, cmd); - ValueArg argFW("f","firmware","hex/afx/elf Firmware file to load (default MK3S.afx)",false,"MK3S.afx","file:*.hex|*.afx|*.elf", cmd); - ValueArg argFW2("F","firmware2","secondary hex/afx/elf Firmware file to load to MMU, if present (default MM-control-01.hex)",false,"MM-control-01.hex","file:*.hex|*.afx|*.elf", cmd); + ValueArg argFW("f","firmware","hex/afx/elf Firmware file to load (default MK3S.afx)",false,"MK3S.afx","file:hex|afx|elf", cmd); + ValueArg argFW2("F","firmware2","secondary hex/afx/elf Firmware file to load to MMU, if present (default MM-control-01.hex)",false,"MM-control-01.hex","file:hex|afx|elf", cmd); std::vector vstrExts = PrintVisualType::GetOpts(); ValuesConstraint vcPrintOpts(vstrExts); ValueArg argExtrusion("","extrusion","Set Print visual type. HR options create a LOT of triangles, do not use for large prints!",false, "Line", &vcPrintOpts, cmd); @@ -360,7 +360,7 @@ int main(int argc, char *argv[]) SwitchArg argCmplZsh("","complete-zsh","Generate zsh auto-complete script for supported arguments",cmd); SwitchArg argCmplBash("","complete-bash","Generate bash auto-complete script for supported arguments",cmd); SwitchArg argColourE("", "colour-extrusion", "Colours extrusion by width (for advanced step/extrusion debugging.", cmd, false); - ValueArg argStrBoot("","bootloader-file", "Specifies a .hex file to load as the bootloader. If empty, ("") no bootloader is loaded, if unspecified the default is used.",false,"stk500boot_v2_mega2560.hex","file:*.hex",cmd); + ValueArg argStrBoot("","bootloader-file", "Specifies a .hex file to load as the bootloader. If empty, ("") no bootloader is loaded, if unspecified the default is used.",false,"stk500boot_v2_mega2560.hex","file:hex",cmd); SwitchArg argBootloader("b","bootloader","Run bootloader on first start instead of going straight to the firmware.",cmd); SwitchArg argMD("","markdown","Used to auto-generate the items in refs/ as markdown",cmd);