mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore(cli): make open and clipboard optional
This commit is contained in:
parent
49e4c038b5
commit
9497a3d340
@ -10,7 +10,7 @@ import { diff, printDiff } from '../utils/diff'
|
||||
export async function invoke (args) {
|
||||
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
|
||||
const server = createServer()
|
||||
const listener = await server.listen({ clipboard: true, open: true })
|
||||
const listener = await server.listen({ clipboard: args.clipboard, open: args.open || args.o })
|
||||
|
||||
const rootDir = resolve(args._[0] || '.')
|
||||
|
||||
@ -71,6 +71,6 @@ export async function invoke (args) {
|
||||
}
|
||||
|
||||
export const meta = {
|
||||
usage: 'nu dev [rootDir]',
|
||||
usage: 'nu dev [rootDir] [--clipboard] [--open, -o]',
|
||||
description: 'Run nuxt development server'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user