Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the name parameter mandatory

  • Loading branch information...
commit a5cb46643a1664e63311c28e860832786b376f78 1 parent e96bdce
@orlandov orlandov authored
Showing with 11 additions and 5 deletions.
  1. +5 −5 README.md
  2. +6 −0 lib/cli.js
10 README.md
@@ -5,7 +5,7 @@ convertvm - Convert VM images into Smart Datacenter dataset manifests.
# SYNOPSIS
- convertvm [-dhnouv] inputvm output-directory
+ convertvm [-dhnouv] inputvm.ovf-directory
# DESCRIPTION
@@ -31,7 +31,10 @@ invocation.
## Dataset Override Options
-n/--ds-manifest <name>
- Set the dataset name. (ie. myvm)
+ (Mandatory): Set the dataset name. (ie. myvm)
+
+ -o/--ds-os <os>
+ (Mandatory): Set the dataset operating system. (ie. linux, windows, smartos, etc.)
-v/--ds-version <version>
Set the dataset version. (ie. 1.0.0)
@@ -39,9 +42,6 @@ invocation.
-d/--ds-description <description>
Set the dataset description. Maximum of 256 characters.
- -o/--ds-os <os>
- Set the dataset operating system. (ie. linux, windows, smartos, etc.)
-
-N/--ds-nic-driver <pcnet|e1000|...>
Set the nic driver.
View
6 lib/cli.js
@@ -87,6 +87,12 @@ CLI.prototype.parseOptions = function () {
parser.parse(process.argv);
+ if (!options.ds_name) {
+ console.error('Error: --ds-name must be specified\n');
+ self.displayHelp(parser.toString());
+ process.exit(1);
+ }
+
if (!options.input) {
console.warn('No input given');
self.displayHelp(parser.toString());
Please sign in to comment.
Something went wrong with that request. Please try again.