public ICommand MakeCommand(string[] arguments) { string[] parameters = _parameterParser.GetParameters(arguments, 2, 2); var renameFilesCommand = Config.Get <RenameFilesCommand>(); if (parameters == null) { return(renameFilesCommand); } renameFilesCommand.Directory = arguments[1]; renameFilesCommand.ByLabels = parameters; return(renameFilesCommand); }
public ICommand MakeCommand(string[] arguments) { string[] parameters = _parameterParser.GetParameters(arguments, 2, 2); var organizerImageCommand = Config.Get <OrganizerImagesCommand>(); if (parameters == null) { return(organizerImageCommand); } organizerImageCommand.Directory = arguments[1]; organizerImageCommand.ByLabels = parameters; return(organizerImageCommand); }