Skip to content

Commit

Permalink
Println instead of Printf
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Aug 10, 2019
1 parent 0aa00a1 commit 86102a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unxor.go
Expand Up @@ -16,17 +16,17 @@ func parseArgs() (*string, *string, *string) {
flag.Parse()

if *fn == "" {
fmt.Printf("You must specify a filename with the -f flag.")
fmt.Println("You must specify a filename with the -f flag.")
os.Exit(-1)
}

if *g != "" && *gh != "" {
fmt.Printf("-gh and -h are mutually exclusive.")
fmt.Println("-gh and -h are mutually exclusive.")
os.Exit(-1)
}

if *g == "" && *gh == "" {
fmt.Printf("You must specify either -gh or -g.")
fmt.Println("You must specify either -gh or -g.")
os.Exit(-1)
}

Expand Down

0 comments on commit 86102a4

Please sign in to comment.