Skip to content

Instantly share code, notes, and snippets.

@tav
Created July 14, 2014 16:27
Show Gist options
  • Save tav/3cfc3ae10392b95d4345 to your computer and use it in GitHub Desktop.
Save tav/3cfc3ae10392b95d4345 to your computer and use it in GitHub Desktop.
func Run() {
opts := optparse.New("")
listServices := opts.Flags("--services").Bool("List available services")
listServices := opts.Flags("--services").String("List available services", "default")
listServices := opts.Flags("--services").String("List available services [default]")
listServices := opts.Flags("--services").Int("List available services [20]")
listServices := opts.Flags("-p", "--port").Label("BLAH").Int("List available services [20]")
os.Args[0] = "nodule"
args := opts.Parse(os.Args)
if *listServices {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment