Skip to content

Commit

Permalink
fix: help command
Browse files Browse the repository at this point in the history
  • Loading branch information
KusStar committed May 12, 2024
1 parent 1ca57ee commit c06d3ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const tmpobj = tmp.dirSync();

const DEFAULT_OUTPUT = path.join(tmpobj.name, 'stats.html');

cli.help()

cli.option('--template -t <template>', 'Template to use, options are "raw-data" (JSON), "treemap", "list", "sunburst" and "network"', {
default: 'treemap'
})
Expand All @@ -28,7 +30,7 @@ cli.option('--sourcemap ', 'use sourcemap to calculate sizes of modules. By idea

cli.option('--sourcemap ', 'use sourcemap to calculate sizes of modules. By idea it will present more accurate results, defaults is false')

cli.help('--mode -m <mode>', 'set env mode, defaults to production')
cli.option('--mode -m <mode>', 'set env mode, defaults to production')

const parsed = cli.parse()

Expand Down

0 comments on commit c06d3ae

Please sign in to comment.