diff --git a/cmd/jag/commands/run.go b/cmd/jag/commands/run.go index 49b4e3b..c3918a8 100644 --- a/cmd/jag/commands/run.go +++ b/cmd/jag/commands/run.go @@ -280,6 +280,7 @@ func sendCodeFromFile( // We assume the error has been printed. // Mark the command as silent to avoid printing the error twice. cmd.SilenceErrors = true + cmd.SilenceUsage = true return err } } @@ -381,6 +382,7 @@ func sendCodeFromFile( // We assume the error has been printed. // Mark the command as silent to avoid printing the error twice. cmd.SilenceErrors = true + cmd.SilenceUsage = true return err } @@ -389,6 +391,7 @@ func sendCodeFromFile( // We just printed the error. // Mark the command as silent to avoid printing the error twice. cmd.SilenceErrors = true + cmd.SilenceUsage = true return err } fmt.Printf("Success: Sent %dKB code to '%s'\n", len(b)/1024, device.Name)