🎨 Update help messaging

This commit is contained in:
C-3PO 2018-10-25 03:07:24 +02:00
parent 08173fe495
commit 539c3be9f0
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
4 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import parseArguments from 'argument-parser';
import { getManifest, IManifest, Product, verifyProductName } from 'ssn'; import { getManifest, IManifest, Product, verifyProductName } from 'ssn';
const { args, fail } = parseArguments({ 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)); }, (origArgs) => ((origArgs.length === 1) ? ['--product', origArgs[0]] : undefined));
//Get manifest and write output to stdout //Get manifest and write output to stdout

View file

@ -4,7 +4,7 @@ import parseArguments from 'argument-parser';
import { getPatchZip, ISsnFileEntry, Product, verifyProductName } from 'ssn'; import { getPatchZip, ISsnFileEntry, Product, verifyProductName } from 'ssn';
const { args, fail } = parseArguments({ 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) }, 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) }, 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)); }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined));

View file

@ -4,7 +4,7 @@ import parseArguments from 'argument-parser';
import { getSolidpkg, ISolidSimple, Product, verifyProductName } from 'ssn'; import { getSolidpkg, ISolidSimple, Product, verifyProductName } from 'ssn';
const { args, fail } = parseArguments({ 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) }, 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) }, 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)); }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined));

View file

@ -4,7 +4,7 @@ import parseArguments from 'argument-parser';
import { getPatch, Product, verifyProductName } from 'ssn'; import { getPatch, Product, verifyProductName } from 'ssn';
const { args, fail } = parseArguments({ 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) }, 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) }, 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)); }, (origArgs) => ((origArgs.length === 3) ? ['--product', origArgs[0], '--from', origArgs[1], '--to', origArgs[2]] : undefined));