Skip to content

Commit

Permalink
Merge pull request #11 from jacobbednarz/usage-by-default
Browse files Browse the repository at this point in the history
cmd/root: Show usage by default
  • Loading branch information
jacobbednarz committed Sep 29, 2020
2 parents 3c8a5b0 + 0df4df9 commit d65cdf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"fmt"
"os"

"github.com/99designs/keyring"
log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -34,6 +35,11 @@ var rootCmd = &cobra.Command{
if verbose {
log.SetLevel(log.DebugLevel)
}

if len(args) == 0 {
cmd.Help()
os.Exit(0)
}
},
Run: func(cmd *cobra.Command, args []string) {},
}
Expand Down

0 comments on commit d65cdf2

Please sign in to comment.