You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
310 B
11 lines
310 B
#!/usr/bin/env node |
|
|
|
import { UserError, cli, help } from './dist/cli.mjs' |
|
|
|
cli(process.stdin, error => { |
|
if (error instanceof UserError) { |
|
if (error.code === UserError.ARGS) console.error(`${help}\n`) |
|
console.error(error.message) |
|
process.exitCode = error.code |
|
} else if (error) throw error |
|
})
|
|
|