Permalink
Browse files

add -a flag to get/set

  • Loading branch information...
1 parent 07ac414 commit f17cde408bd5062066fe85d075df8484b174ee02 @bmizerany bmizerany committed Jun 25, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 env.go
View
5 env.go
@@ -14,7 +14,10 @@ var cmdEnv = &Command{
}
func init() {
- cmdEnv.Flag.StringVar(&flagApp, "a", "", "app")
+ cmds := []*Command{cmdEnv, cmdGet, cmdSet}
+ for _, c := range cmds {
+ c.Flag.StringVar(&flagApp, "a", "", "app")
+ }
}
func runEnv(cmd *Command, args []string) {

0 comments on commit f17cde4

Please sign in to comment.