瀏覽代碼

Improve help

Add usage instructions and short description with the app.
master
TheoryOfNekomata 2 年之前
父節點
當前提交
9473e29f32
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      src/index.ts

+ 7
- 0
src/index.ts 查看文件

@@ -9,6 +9,10 @@ import {

void main(
yargs
.scriptName('oblique')
.usage(`Oblique Strategies - Be creative, pick constraints, get to work.

Usage: $0 [-c <cards>] [-f] [-p <presentation>]`)
.option('cards', {
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]://",
@@ -53,5 +57,8 @@ void main(
default: 'plain',
})
.help()
.alias('h', 'help')
.alias('v', 'version')
.wrap(yargs.terminalWidth())
.parse(hideBin(process.argv)) as MainArgs,
);

Loading…
取消
儲存