Skip to content
Browse files

minor cleanup to cmd-line args (no more default)

  • Loading branch information...
1 parent 9db1636 commit fb260ca58d875ca6d4b71aadbb04115e794acaa9 Steve Howell committed Jan 29, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 dashboard.coffee
View
8 dashboard.coffee
@@ -173,12 +173,8 @@ run_dashboard = (port) ->
console.log "Server running at http://localhost:#{port}/"
do ->
- if process.argv.length <= 2
- DIR = '.'
- port = '10798'
- else
- [ignore, ignore, DIR, port] = process.argv
+ [ignore, ignore, DIR, port] = process.argv
unless port? and port.match /^\d+/
- console.warn "You must supply a port number as the second argument"
+ console.warn "You must supply a directory and port number."
return
run_dashboard(port)

0 comments on commit fb260ca

Please sign in to comment.
Something went wrong with that request. Please try again.