Cleaned up ordering of command line options.
This commit is contained in:
parent
75bc76ff76
commit
fee5f4d293
@ -24,8 +24,8 @@ type cmdOptions struct {
|
|||||||
|
|
||||||
func parseCmdOptions() cmdOptions {
|
func parseCmdOptions() cmdOptions {
|
||||||
var o cmdOptions
|
var o cmdOptions
|
||||||
flag.StringVar(&o.config, "config", "dospin.json", "Path to the dospin config file")
|
|
||||||
flag.StringVar(&o.cmd, "cmd", CMD_SERVE, "Mode to run command in ("+CMD_SERVE+","+CMD_SPINDOWNALL+")")
|
flag.StringVar(&o.cmd, "cmd", CMD_SERVE, "Mode to run command in ("+CMD_SERVE+","+CMD_SPINDOWNALL+")")
|
||||||
|
flag.StringVar(&o.config, "config", "dospin.json", "Path to the dospin config file")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user