From 69c16caaa3ed06198841c05b73115de905b10261 Mon Sep 17 00:00:00 2001 From: mrwiredancer Date: Sun, 29 Dec 2019 22:16:56 +0800 Subject: [PATCH] added validation: --vm-name --in-id --st-name --file --gp-name --ar-name --- bin/nc.js | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 bin/nc.js diff --git a/bin/nc.js b/bin/nc.js old mode 100644 new mode 100755 index 39d21f3..d6a3bb7 --- a/bin/nc.js +++ b/bin/nc.js @@ -25,6 +25,12 @@ program .option("-h, --id ", "Id") .option("-m, --image ,", "Image") .option("-n, --instance ,", "Instance") + .option("--vm-name ", "VM name") + .option("--in-id ", "Instance ID") + .option("--st-name ", "Storage name") + .option("--file ", "File path") + .option("--gp-name ", "IAM group name") + .option("--ar-name ", "IAM attached resource name") .parse(process.argv); Services(program, spinner);