Skip to content

Commit

Permalink
add --version flag to show version information
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 17, 2024
1 parent 6af866a commit 6166590
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/grasshopper/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ var config = &Config{}

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "grasshopper",
Short: "A secure chained relayer for UDP",
Use: "grasshopper",
Version: Version,
Short: "A secure chained relayer for UDP",
Long: `Grasshopper is a UDP packet forwarder that listens for incoming packets and forwards them to a configured destination. It optionally supports cryptography for both incoming and outgoing packets, using different keys and methods. Optionally, the listener can be configured to apply cryptogrraphy on both the incoming and outgoing packets, with different keys and methods.
`,
// Uncomment the following line if your bare application
Expand Down

0 comments on commit 6166590

Please sign in to comment.