mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
ensure that a version arg was given
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Orchard.ImportExport.Commands {
|
||||
|
||||
var versionOption = VersionHistoryOptions.Published;
|
||||
|
||||
if (!Enum.TryParse(Version, out versionOption)) {
|
||||
if (!String.IsNullOrEmpty(Version) && !Enum.TryParse(Version, out versionOption)) {
|
||||
Context.Output.WriteLine(T("Invalid version option"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user