Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Add flag for verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceGA committed May 17, 2020
1 parent 9f8f4f6 commit 52d8ce2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion internal/command/root.go
Expand Up @@ -8,7 +8,10 @@ import (
"github.com/spf13/cobra"
)

const identityFileFlagName = "identity-file"
const (
// used by flows that sign proofs
identityFileFlagName = "identity-file"
)

func NewRootCommand(commandIO *io.IO) *cobra.Command {
rootCmd := &cobra.Command{
Expand Down Expand Up @@ -37,5 +40,12 @@ This is version %s, built at %s
rootCmd.SetOut(commandIO.Out())
rootCmd.SetErr(commandIO.Err())

rootCmd.PersistentFlags().BoolP(
"verbose",
"v",
false,
"show verbose output",
)

return rootCmd
}

0 comments on commit 52d8ce2

Please sign in to comment.