File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ command_result df_regrass(color_ostream &out, vector<string> ¶meters)
377377{
378378 regrass_options options;
379379
380- for (size_t i = 0 ; i < parameters.size (); i++)
380+ for (size_t i = 0 ; i < parameters.size (); i++) // TODO: argparse
381381 {
382382 auto &s = parameters[i];
383383 if (s == " m" || s == " max" )
@@ -388,14 +388,22 @@ command_result df_regrass(color_ostream &out, vector<string> ¶meters)
388388 options.ashes = true ;
389389 else if (s == " u" || s == " mud" )
390390 options.mud = true ;
391- else if (s == " p " || s == " here" )
391+ else if (s == " h " || s == " here" )
392392 options.here = true ;
393393 else if (s == " b" || s == " block" )
394394 options.block = true ;
395- else // "h", "help", invalid
395+ else // invalid
396396 return CR_WRONG_USAGE ;
397397 }
398398
399+ if (options.here )
400+ {
401+ if (options.block )
402+ return CR_WRONG_USAGE ;
403+ options.ashes = true ;
404+ options.mud = true ;
405+ }
406+
399407 if (!Core::getInstance ().isMapLoaded ())
400408 {
401409 out.printerr (" Map not loaded!\n " );
You can’t perform that action at this time.
0 commit comments