about summary refs log tree commit diff
path: root/src/flags.go
blob: 1fd28df79aa2cbe020ee9a38ce7967701940940c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import "flag"

func parseFlags() config {
	sshPort := flag.Int("sshPort", 2222, "the port the ssh server is listening on")
	httpPort := flag.Int("httpPort", 8084, "the port the http server is listening on")

	flag.Parse()

	return config{
		sshPort:  *sshPort,
		httpPort: *httpPort,
	}
}