🎨 Update help messaging
This commit is contained in:
parent
08173fe495
commit
539c3be9f0
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue