Skip to content

Commit

Permalink
Minor text fixes (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Aug 25, 2023
1 parent 14fe548 commit 1f68708
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ func defaultInitialProfile() config.Profile {
var cli = &cobra.Command{
Use: "pb",
Short: "\nParseable command line interface",
Long: "\npb is a command line interface for Parseable",
Long: "\npb is the command line interface for Parseable",
RunE: func(command *cobra.Command, args []string) error {
if p, _ := command.Flags().GetBool(versionFlag); p {
cmd.PrintVersion(Version, Commit)
return nil
}

return errors.New("no command or flag supplied")
},
}
Expand Down Expand Up @@ -127,7 +126,7 @@ func main() {
stream.AddCommand(cmd.ListStreamCmd)
stream.AddCommand(cmd.StatStreamCmd)

query.PersistentFlags().StringP(durationFlag, durationFlagShort, defaultDuration, "specify the duration in minutes for which queries should be executed. Defaults to 10")
query.PersistentFlags().StringP(durationFlag, durationFlagShort, defaultDuration, "specify the duration in minutes for which queries should be executed. Defaults to 10 minutes")

cli.AddCommand(profile)
cli.AddCommand(query)
Expand Down

0 comments on commit 1f68708

Please sign in to comment.