@@ -40,7 +40,7 @@ import (
4040
4141const (
4242 APP = "SSLScan Client"
43- VER = "3.0.2 "
43+ VER = "3.0.3 "
4444 DESC = "Command-line client for the SSL Labs API"
4545)
4646
@@ -159,7 +159,7 @@ func Run(gitRev string, gomod []byte) {
159159
160160 if ! errs .IsEmpty () {
161161 terminal .Error ("Options parsing errors:" )
162- terminal .Error (errs .Error ("- " ))
162+ terminal .Error (errs .Error (" - " ))
163163 os .Exit (1 )
164164 }
165165
@@ -272,7 +272,7 @@ func registerUser() (error, bool) {
272272
273273 if err != nil {
274274 if ! options .GetB (OPT_FORMAT ) {
275- return fmt .Errorf ("Error while sending request to SSL Labs API: %v " , err ), false
275+ return fmt .Errorf ("Error while sending request to SSL Labs API: %w " , err ), false
276276 }
277277
278278 return nil , false
@@ -302,7 +302,7 @@ func registerUser() (error, bool) {
302302 })
303303
304304 if err != nil {
305- return fmt .Errorf ("Can't register user: %v " , err ), false
305+ return fmt .Errorf ("Can't register user: %w " , err ), false
306306 }
307307
308308 fmtc .Printfn ("{g}%s{!}\n " , resp .Message )
@@ -320,7 +320,7 @@ func runHostCheck(args options.Arguments) (error, bool) {
320320
321321 if err != nil {
322322 if ! options .GetB (OPT_FORMAT ) {
323- return fmt .Errorf ("Error while sending request to SSL Labs API: %v " , err ), false
323+ return fmt .Errorf ("Error while sending request to SSL Labs API: %w " , err ), false
324324 }
325325
326326 return nil , false
@@ -704,7 +704,7 @@ func checkAPIAvailability() support.Check {
704704 } else if resp .StatusCode != 200 {
705705 return support.Check {
706706 support .CHECK_ERROR , "SSLLabs API" , fmt .Sprintf (
707- "API returned non-ok status code %s " , resp .StatusCode ,
707+ "API returned non-ok status code %d " , resp .StatusCode ,
708708 ),
709709 }
710710 }
@@ -756,6 +756,8 @@ func genUsage() *usage.Info {
756756 info .AddOption (OPT_HELP , "Show this help message" )
757757 info .AddOption (OPT_VER , "Show version" )
758758
759+ info .AddEnv ("SSLLABS_EMAIL" , "User account email {s-}(String){!}" )
760+
759761 info .AddExample (
760762 "--register --email john@domain.com --org 'Some Organization' --name 'John Doe'" ,
761763 "Register new user account for scanning" ,
0 commit comments