Skip to content

Commit

Permalink
Mention files and stdin in the help
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Jun 20, 2015
1 parent 1a697af commit fda87db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/xurls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ var (

func init() {
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: xurls [-h]\n\n")
fmt.Fprintf(os.Stderr, "Usage: xurls [-h] [files]\n\n")
fmt.Fprintf(os.Stderr, "If no files are given, it reads from standard input.\n\n")
fmt.Fprintf(os.Stderr, " -m <regexp> only match urls whose scheme matches a regexp\n")
fmt.Fprintf(os.Stderr, " example: 'https?://|mailto:'\n")
fmt.Fprintf(os.Stderr, " -r also match urls without a scheme (relaxed)\n")
Expand Down

0 comments on commit fda87db

Please sign in to comment.