Changeset 16102 for branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling
- Timestamp:
- 08/30/18 09:47:50 (6 years ago)
- Location:
- branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2213_irace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling/CommandLineArgumentHandling.cs
r15583 r16102 43 43 44 44 private static ICommandLineArgument ParseArgument(string entry) { 45 var regex = new Regex(@"^/[A-Za-z]+(: \w[\w\s]*)?$");45 var regex = new Regex(@"^/[A-Za-z]+(:[^/]*)?$"); 46 46 bool isFile = File.Exists(entry); 47 47 if (!regex.IsMatch(entry) && !isFile) return null; … … 54 54 case StartArgument.TOKEN: return new StartArgument(value); 55 55 case HideStarterArgument.TOKEN: return new HideStarterArgument(value); 56 default: return n ull;56 default: return new SimpleArgument(key, value); 57 57 } 58 58 } else return new OpenArgument(entry);
Note: See TracChangeset
for help on using the changeset viewer.