Commits

Erno Hopearuoho  committed e115db2

Added usage information when called without parameters.

  • Participants
  • Parent commits 7984381

Comments (0)

Files changed (1)

 }
 
 func main() {
+	if len(os.Args) <= 1 {
+		fmt.Println("usage: gotags filename [ filename... ] > tags")
+		os.Exit(1)
+	}
 	parse_files()
 
 	fmt.Println("!_TAG_FILE_SORTED\t1\t")