Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
Improve usage message (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
benauthor authored and Rory Sawyer committed Jan 14, 2019
1 parent 2b357f3 commit 9301dfe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ const (
namespaceEnvVar = "SECRETLY_NAMESPACE"
)

func usage() {
fmt.Println("Usage: secretly <command> [arg...]")
os.Exit(1)
}

func main() {
if len(os.Args) <= 1 {
log.Fatalf("No command passed")
usage()
}
environ := os.Environ()
if ns, ok := os.LookupEnv(namespaceEnvVar); ok {
Expand Down

0 comments on commit 9301dfe

Please sign in to comment.