Skip to content

Commit

Permalink
Merge pull request #10 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Fixed usage examples
andyone authored Aug 2, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents b50ede5 + bb6d1aa commit 34c3cf0
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cli/cli.go
Original file line number Diff line number Diff line change
@@ -463,7 +463,7 @@ func showUsage() {
info.AddOption(ARG_FORMAT, "Output result in different formats", "text|json|xml")
info.AddOption(ARG_DETAILED, "Show detailed info for each endpoint")
info.AddOption(ARG_IGNORE_MISMATCH, "Proceed with assessments on certificate mismatch")
info.AddOption(ARG_AVOID_CACHE, "Avoid cache usage")
info.AddOption(ARG_AVOID_CACHE, "Disable cache usage")
info.AddOption(ARG_PUBLIC, "Publish results on sslscan.com")
info.AddOption(ARG_PERFECT, "Return non-zero exit code if not A+")
info.AddOption(ARG_NOTIFY, "Notify when check is done")
@@ -474,7 +474,7 @@ func showUsage() {

info.AddExample("google.com", "Check google.com")
info.AddExample("-P google.com", "Check google.com and return zero exit code only if result is perfect (A+)")
info.AddExample("-p -c google.com", "Check google.com, publish results, use cache")
info.AddExample("-p -c google.com", "Check google.com, publish results, disable cache usage")
info.AddExample("hosts.txt", "Check all hosts defined in hosts.txt file")

info.Render()
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -43,8 +43,8 @@ Options:
--format, -f text|json|xml Output result in different formats
--detailed, -d Show detailed info for each endpoint
--ignore-mismatch, -i Proceed with assessments on certificate mismatch
--cache, -c Use cache if possible
--public, -p Publish results on ssllabs.com
--avoid-cache, -c Disable cache usage
--public, -p Publish results on sslscan.com
--perfect, -P Return non-zero exit code if not A+
--notify, -n Notify when check is done
--quiet, -q Don't show any output
@@ -54,16 +54,16 @@ Options:
Examples:
sslscan google.com
sslcli google.com
Check google.com
sslscan -P google.com
sslcli -P google.com
Check google.com and return zero exit code only if result is perfect (A+)
sslscan -p -c google.com
Check google.com, publish results, use cache
sslcli -p -c google.com
Check google.com, publish results, disable cache usage
sslscan hosts.txt
sslcli hosts.txt
Check all hosts defined in hosts.txt file
````

0 comments on commit 34c3cf0

Please sign in to comment.