Skip to content

Commit

Permalink
Proper help text
Browse files Browse the repository at this point in the history
  • Loading branch information
port19x committed Aug 26, 2024
1 parent 1949458 commit ce6d506
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ import (
"time"
)

const helptext = "Usage: deadsniper <link to sitemap.xml>" //TODO: document -s
const helptext = `Usage: deadsniper [options] <link to sitemap.xml>
Options:
-h | --help print this help text
-V | --version print the version number
-s | --strict allow only HTTP 200 response codes
-t | --timeout set the request timeout in seconds (default 5)
Examples:
deadsniper https://port19.xyz/sitemap.xml
deadsniper -V
deadsniper --strict https://port19.xyz/sitemap.xml
deadsniper -t 1 -s https://port19.xyz/sitemap.xml`

var allowedStatusCodes = []int{
http.StatusForbidden, // Forbidden is very common. With or without a user agent
Expand Down

0 comments on commit ce6d506

Please sign in to comment.