Skip to content

how can I use default command and help simultaneously #2312

Description

@PengBoUESTC

yargs(hideBin(process.argv))
.command("$0", "init rspack project", async argv => {
consosle.log('111')
})
.help()
.parse()

if the builder is an async function, the help command will run the builder without the help message

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions