Skip to content

Commit

Permalink
local flag version
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Sep 10, 2022
1 parent 1d0125f commit a91494b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import (
)

func init() {
rootCmd.PersistentFlags().BoolP("version", "V", false, "Print version and exit")
rootCmd.Flags().BoolP("version", "V", false, "Print version and exit")

// TODO: rootCmd.PersistentFlags().BoolP("verbose", "v", false, "Enable verbose output")
rootCmd.PersistentFlags().String("host", "api.modrinth.com", "Labrinth host")
rootCmd.PersistentFlags().String("server-dir", "mc", "Server directory path")
Expand Down

0 comments on commit a91494b

Please sign in to comment.