|
@@ -9,6 +9,10 @@ import { |
|
|
|
|
|
|
|
|
void main( |
|
|
void main( |
|
|
yargs |
|
|
yargs |
|
|
|
|
|
.scriptName('oblique') |
|
|
|
|
|
.usage(`Oblique Strategies - Be creative, pick constraints, get to work. |
|
|
|
|
|
|
|
|
|
|
|
Usage: $0 [-c <cards>] [-f] [-p <presentation>]`) |
|
|
.option('cards', { |
|
|
.option('cards', { |
|
|
alias: 'c', |
|
|
alias: 'c', |
|
|
description: "List of source for generating cards. Can have 'default', a pipe-delimited string starting with 'text:' or a URL starting with file:/// or http[s]://", |
|
|
description: "List of source for generating cards. Can have 'default', a pipe-delimited string starting with 'text:' or a URL starting with file:/// or http[s]://", |
|
@@ -53,5 +57,8 @@ void main( |
|
|
default: 'plain', |
|
|
default: 'plain', |
|
|
}) |
|
|
}) |
|
|
.help() |
|
|
.help() |
|
|
|
|
|
.alias('h', 'help') |
|
|
|
|
|
.alias('v', 'version') |
|
|
|
|
|
.wrap(yargs.terminalWidth()) |
|
|
.parse(hideBin(process.argv)) as MainArgs, |
|
|
.parse(hideBin(process.argv)) as MainArgs, |
|
|
); |
|
|
); |