Skip to content

Commit

Permalink
add more helpful help
Browse files Browse the repository at this point in the history
Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed Apr 20, 2022
1 parent 3174a01 commit 15e3b25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gosmee.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ func (c goSmee) setup() error {
func main() {
app := &cli.App{
Name: "gosmee",
Usage: "forward smee url to local",
Usage: "forward smee url to a local service",
UsageText: "gosmee [command options] SMEE_URL LOCAL_SERVICE_URL",
EnableBashCompletion: true,
Version: string(Version),
Commands: []*cli.Command{
Expand Down Expand Up @@ -361,6 +362,6 @@ func main() {
},
}
if err := app.Run(os.Args); err != nil {
os.Stdout.WriteString(fmt.Sprintf("%s Forwarding %s\n", ansi.Color("ERROR", "red+b"), err.Error()))
os.Stdout.WriteString(fmt.Sprintf("%s gosmee %s\n", ansi.Color("ERROR", "red+b"), err.Error()))
}
}

0 comments on commit 15e3b25

Please sign in to comment.