dummy
This commit is contained in:
parent
9d4672ccb8
commit
ca3071c0a0
6
gd.js
6
gd.js
@ -7,7 +7,7 @@ const supportedFormat = ['text', 'json', 'xml'];
|
|||||||
const ERR_INVALID_FORMAT = `
|
const ERR_INVALID_FORMAT = `
|
||||||
Invalid output
|
Invalid output
|
||||||
Please specify one of those values : "${supportedFormat}"
|
Please specify one of those values : "${supportedFormat}"
|
||||||
`
|
`;
|
||||||
|
|
||||||
const helpText = `
|
const helpText = `
|
||||||
ex. pdfdig -i input-file -o output_directory -f json
|
ex. pdfdig -i input-file -o output_directory -f json
|
||||||
@ -18,12 +18,12 @@ ex. pdfdig -i input-file -o output_directory -f json
|
|||||||
--format or -f format (optional - default "text") - ("${supportedFormat}")
|
--format or -f format (optional - default "text") - ("${supportedFormat}")
|
||||||
--font or -t extract fonts as ttf files
|
--font or -t extract fonts as ttf files
|
||||||
--help or -h display this help message
|
--help or -h display this help message
|
||||||
`
|
`;
|
||||||
|
|
||||||
// converts argument to boolean
|
// converts argument to boolean
|
||||||
const toBool = (val) => {
|
const toBool = (val) => {
|
||||||
return val === 'true' || val === 1 || val === true;
|
return val === 'true' || val === 1 || val === true;
|
||||||
}
|
};
|
||||||
|
|
||||||
const argv = minimist(process.argv.slice(2))
|
const argv = minimist(process.argv.slice(2))
|
||||||
const help = argv['help'] || argv['h'];
|
const help = argv['help'] || argv['h'];
|
||||||
|
Loading…
Reference in New Issue
Block a user