mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
de68a86c8c
* refactor(tauri.js): move command code into helpers * reafactor(tauri.js): move command helpers to api dir * fix(tauri.js/tests): import tauricon from proper dir * fix(tauri.js/tests): add api dir to moduleNameMapper
25 lines
342 B
JavaScript
25 lines
342 B
JavaScript
const parseArgs = require('minimist')
|
|
|
|
const argv = parseArgs(process.argv.slice(2), {
|
|
alias: {
|
|
h: 'help'
|
|
},
|
|
boolean: ['h']
|
|
})
|
|
|
|
if (argv.help) {
|
|
console.log(`
|
|
Description
|
|
Tauri dev.
|
|
Usage
|
|
$ tauri dev
|
|
Options
|
|
--help, -h Displays this message
|
|
`)
|
|
process.exit(0)
|
|
}
|
|
|
|
const dev = require('../api/dev')
|
|
|
|
dev()
|