1

My requirement is quite simple. I want to execute help command when a user executes a specific command without enough arguments.

async run() { if (!args.name) { this.log(please provide a project name.) // help ()
} }

1 Answers1

2

After some documentation searching, I found the answer:

if (!args.name) {
      this.log(`please provide a project name.`)
      **await Build.run(['--help'])**   
}
janpio
  • 10,645
  • 16
  • 64
  • 107