diff --git a/e2e/cli.test.js.md b/e2e/cli.test.js.md index 9d2c7f0..5ba41c6 100644 --- a/e2e/cli.test.js.md +++ b/e2e/cli.test.js.md @@ -11,8 +11,8 @@ Generated by [AVA](https://ava.li). `Usage: docsify ␊ ␊ Commands:␊ - docsify init [path] Creates new docs␊ - docsify serve [path] Run local server to preview site.␊ + docsify init [path] Creates new docs [aliases: i]␊ + docsify serve [path] Run local server to preview site. [aliases: s]␊ docsify start Server for SSR␊ ␊ Global Options␊ @@ -35,8 +35,8 @@ Generated by [AVA](https://ava.li). `Usage: docsify ␊ ␊ Commands:␊ - docsify init [path] Creates new docs␊ - docsify serve [path] Run local server to preview site.␊ + docsify init [path] Creates new docs [aliases: i]␊ + docsify serve [path] Run local server to preview site. [aliases: s]␊ docsify start Server for SSR␊ ␊ Global Options␊ @@ -57,8 +57,8 @@ Generated by [AVA](https://ava.li). `Usage: docsify ␊ ␊ Commands:␊ - docsify init [path] Creates new docs␊ - docsify serve [path] Run local server to preview site.␊ + docsify init [path] Creates new docs [aliases: i]␊ + docsify serve [path] Run local server to preview site. [aliases: s]␊ docsify start Server for SSR␊ ␊ Global Options␊ @@ -79,8 +79,8 @@ Generated by [AVA](https://ava.li). `Usage: docsify ␊ ␊ Commands:␊ - docsify init [path] Creates new docs␊ - docsify serve [path] Run local server to preview site.␊ + docsify init [path] Creates new docs [aliases: i]␊ + docsify serve [path] Run local server to preview site. [aliases: s]␊ docsify start Server for SSR␊ ␊ Global Options␊ diff --git a/e2e/cli.test.js.snap b/e2e/cli.test.js.snap index 5de7e79..5a0dff1 100644 Binary files a/e2e/cli.test.js.snap and b/e2e/cli.test.js.snap differ diff --git a/lib/cli.js b/lib/cli.js index 81e23f0..ce2c6d1 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -21,7 +21,7 @@ require('yargs') .usage(chalk.bold(y18n.__('usage') + ': docsify ')) .command({ command: 'init [path]', - alias: 'i', + aliases: 'i', desc: chalk.gray(y18n.__('init')), builder: yargs => yargs.options({ @@ -47,7 +47,7 @@ require('yargs') }) .command({ command: 'serve [path]', - alias: 's', + aliases: 's', desc: chalk.gray(y18n.__('serve')), builder: yargs => yargs.options({