Skip to content

Commit

Permalink
remove extra change
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed May 22, 2022
1 parent 83a7e0c commit 14a3096
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions packages/next/cli/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ import { getProjectDir } from '../lib/get-project-dir'
import { CONFIG_FILES } from '../shared/lib/constants'
import path from 'path'

const validArgs: arg.Spec = {
// Types
'--help': Boolean,
'--port': Number,
'--hostname': String,

// Aliases
'-h': '--help',
'-p': '--port',
'-H': '--hostname',
}

const nextDev: cliCommand = (argv) => {
const validArgs: arg.Spec = {
// Types
'--help': Boolean,
'--port': Number,
'--hostname': String,

// Aliases
'-h': '--help',
'-p': '--port',
'-H': '--hostname',
}
let args: arg.Result<arg.Spec>
try {
args = arg(validArgs, { argv })
Expand Down Expand Up @@ -143,4 +142,4 @@ const nextDev: cliCommand = (argv) => {
}
}

export { nextDev, validArgs }
export { nextDev }

0 comments on commit 14a3096

Please sign in to comment.