Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/26/20 12:58:45 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • the runs of an optimizer gets cleared before starting it in HeuristicLab.JsonInterface.App.Runner now
  • all runs of an optimizer gets cleared when exporting it with ExportJsonDialog
  • fixed a bug in CommandLineArgumentHandling: now always returns a StringArgument when all conditions are false
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling/CommandLineArgumentHandling.cs

    r17442 r17453  
    4545      var regex = new Regex(@"^/[A-Za-z]+(:\w[\w\s]*)?$");
    4646      bool isFile = File.Exists(entry);
    47       if (!regex.IsMatch(entry) && !isFile) return null;
     47      if (!regex.IsMatch(entry) && !isFile) return new StringArgument(entry);
    4848      if (!isFile) {
     49        var stringArgumentFallback = new StringArgument(entry);
    4950        entry = entry.Remove(0, 1);
    5051        var parts = entry.Split(':');
     
    5455          case StartArgument.TOKEN: return new StartArgument(value);
    5556          case HideStarterArgument.TOKEN: return new HideStarterArgument(value);
    56           default: return new StringArgument(value);
     57          default: return stringArgumentFallback;
    5758        }
    5859      } else return new OpenArgument(entry);
Note: See TracChangeset for help on using the changeset viewer.