Skip to content

Commit

Permalink
Merge pull request #26 from koudaiii/koudaiii/short-option
Browse files Browse the repository at this point in the history
Supported short options
  • Loading branch information
koudaiii authored Sep 14, 2017
2 parents a24be4c + 3aa45e4 commit c9db5c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME := kubeps
VERSION := v0.2.1
VERSION := v0.2.2
REVISION := $(shell git rev-parse --short HEAD)

SRCS := $(shell find . -name '*.go' -type f)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func main() {
}

flags.StringVar(&kubeconfig, "kubeconfig", "", "Path of kubeconfig")
flags.StringVar(&labels, "labels", "", "Label filter query")
flags.StringVar(&namespace, "namespace", "", "Kubernetes namespace")
flags.StringVarP(&labels, "labels", "l", "", "Label filter query")
flags.StringVarP(&namespace, "namespace", "n", "", "Kubernetes namespace")
flags.BoolVarP(&version, "version", "v", false, "Print version")

if err := flags.Parse(os.Args[1:]); err != nil {
Expand Down

0 comments on commit c9db5c8

Please sign in to comment.