Skip to content

Commit

Permalink
feat: make relay flag description more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
mellonnen committed Feb 23, 2023
1 parent a095d42 commit 7af990a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cmd/portal/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ import (

// Setup flags.
func init() {
// Add subcommand flags (dummy default values as default values are handled through viper)
desc := `Address of relay server. Can be provided as,
- ipv4: 127.0.0.1:8080
- ipv6: [::1]:8080
- domain: somedomain.com
`
receiveCmd.Flags().StringP("relay", "r", "", desc)
// Add subcommand flags (dummy default values as default values are handled through viper).
receiveCmd.Flags().StringP("relay", "r", "", "address of the relay server")
}

// ------------------------------------------------------ Command ------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion cmd/portal/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ import (
// Set flags.
func init() {
// Add subcommand flags (dummy default values as default values are handled through viper)
sendCmd.Flags().StringP("relay", "r", "", "Address of the relay server ()")
desc := `Address of relay server. Can be provided as,
- ipv4: 127.0.0.1:8080
- ipv6: [::1]:8080
- domain: somedomain.com
`
sendCmd.Flags().StringP("relay", "r", "", desc)
}

// ------------------------------------------------------ Command ------------------------------------------------------
Expand Down

0 comments on commit 7af990a

Please sign in to comment.