Created
July 14, 2014 16:27
-
-
Save tav/3cfc3ae10392b95d4345 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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