~timharek/d-yr

f135dbc978c9df9dcf208851a938c12b20933850 — Tim Hårek Andreassen 7 months ago 410b1ad
feat: Show help when running first command

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
1 files changed, 3 insertions(+), 0 deletions(-)

M src/cli.ts
M src/cli.ts => src/cli.ts +3 -0
@@ 36,6 36,9 @@ await new Command()
  .example('Current weather in Bergen', `yr current bergen`)
  .example('Forecast next 5 hours in Bergen', `yr forecast 5 bergen`)
  .globalOption('--json', 'Display JSON output.')
  .action(function (): void {
    this.showHelp();
  })
  .command('current <name:string>', currentCmd)
  .command(
    'forecast <name:string> [interval:number]',