- Timestamp:
- 02/26/20 12:58:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling/CommandLineArgumentHandling.cs
r17442 r17453 45 45 var regex = new Regex(@"^/[A-Za-z]+(:\w[\w\s]*)?$"); 46 46 bool isFile = File.Exists(entry); 47 if (!regex.IsMatch(entry) && !isFile) return n ull;47 if (!regex.IsMatch(entry) && !isFile) return new StringArgument(entry); 48 48 if (!isFile) { 49 var stringArgumentFallback = new StringArgument(entry); 49 50 entry = entry.Remove(0, 1); 50 51 var parts = entry.Split(':'); … … 54 55 case StartArgument.TOKEN: return new StartArgument(value); 55 56 case HideStarterArgument.TOKEN: return new HideStarterArgument(value); 56 default: return new StringArgument(value);57 default: return stringArgumentFallback; 57 58 } 58 59 } else return new OpenArgument(entry);
Note: See TracChangeset
for help on using the changeset viewer.