piston/cli/index.js

15 lines
319 B
JavaScript
Raw Normal View History

2021-02-22 11:38:11 +01:00
#!/usr/bin/node
require('yargs')(process.argv.slice(2))
.option('piston-url', {
alias: ['u'],
default: 'http://127.0.0.1:6969',
desc: 'Piston API URL',
string: true
})
.scriptName("piston")
.commandDir('commands')
.demandCommand()
.help()
.wrap(72)
.argv