From 539c3be9f07019b7b82670bf4c11b34e871b4681 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 25 Oct 2018 03:07:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20help=20messaging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/getManifest.ts | 2 +- src/getPatchZip.ts | 2 +- src/getSolidpkg.ts | 2 +- src/installPatch.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/getManifest.ts b/src/getManifest.ts index 7cc7e33..a5380ee 100644 --- a/src/getManifest.ts +++ b/src/getManifest.ts @@ -4,7 +4,7 @@ import parseArguments from 'argument-parser'; import { getManifest, IManifest, Product, verifyProductName } from 'ssn'; const { args, fail } = parseArguments({ - product: { short: 'p', description: 'Name of the product we want to get the manifest on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, + product: { short: 'p', description: 'Name of the product you want to get the manifest on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, }, (origArgs) => ((origArgs.length === 1) ? ['--product', origArgs[0]] : undefined)); //Get manifest and write output to stdout diff --git a/src/getPatchZip.ts b/src/getPatchZip.ts index 65f2b78..a5c3b2e 100644 --- a/src/getPatchZip.ts +++ b/src/getPatchZip.ts @@ -4,7 +4,7 @@ import parseArguments from 'argument-parser'; import { getPatchZip, ISsnFileEntry, Product, verifyProductName } from 'ssn'; const { args, fail } = parseArguments({ - product: { short: 'p', description: 'Name of the product we want to get the patch info on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, + product: { short: 'p', description: 'Name of the product you want to get the patch info on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, from: { short: 'f', description: 'Number of the from release, must be an integer in the range [-1, 999]', verify: (str) => (str.match(/^(-1|0|[1-9][0-9]{0,2})$/) !== null) }, to: { short: 't', description: 'Number of the to release, must be an integer in the range [0, 999]', verify: (str) => (str.match(/^(0|[1-9][0-9]{0,2})$/) !== null) }, }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined)); diff --git a/src/getSolidpkg.ts b/src/getSolidpkg.ts index 8173703..7faed25 100644 --- a/src/getSolidpkg.ts +++ b/src/getSolidpkg.ts @@ -4,7 +4,7 @@ import parseArguments from 'argument-parser'; import { getSolidpkg, ISolidSimple, Product, verifyProductName } from 'ssn'; const { args, fail } = parseArguments({ - product: { short: 'p', description: 'Name of the product we want to get the solidpkg on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, + product: { short: 'p', description: 'Name of the product you want to get the solidpkg on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, from: { short: 'f', description: 'Number of the from release, must be an integer in the range [-1, 999]', verify: (str) => (str.match(/^(-1|0|[1-9][0-9]{0,2})$/) !== null) }, to: { short: 't', description: 'Number of the to release, must be an integer in the range [0, 999]', verify: (str) => (str.match(/^(0|[1-9][0-9]{0,2})$/) !== null) }, }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined)); diff --git a/src/installPatch.ts b/src/installPatch.ts index 9ac92c9..62bddc4 100644 --- a/src/installPatch.ts +++ b/src/installPatch.ts @@ -4,7 +4,7 @@ import parseArguments from 'argument-parser'; import { getPatch, Product, verifyProductName } from 'ssn'; const { args, fail } = parseArguments({ - product: { short: 'p', description: 'Name of the product we want to get the patch info on', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, + product: { short: 'p', description: 'Name of the product you want to install', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, from: { short: 'f', description: 'Number of the from release, must be an integer in the range [-1, 999]', verify: (str) => (str.match(/^(-1|0|[1-9][0-9]{0,2})$/) !== null) }, to: { short: 't', description: 'Number of the to release, must be an integer in the range [0, 999]', verify: (str) => (str.match(/^(0|[1-9][0-9]{0,2})$/) !== null) }, }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined));