Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix display of help
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Jun 14, 2024
1 parent 031a826 commit 4c6f421
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import (
// Show help and then exit to the O/S
func showHelp() {
suffix := filepath.Base(os.Args[0])
fmt.Printf("\nUsage: %s {-f -l -v -r ID}\n\nwhere\n\n", suffix)
fmt.Printf("\nUsage: %s {-f -l -p -r ID}\n\nwhere\n\n", suffix)
fmt.Printf("\t-f:\tFetch latest poll data from Internet --> directory csv\n")
fmt.Printf("\t-l:\tLoad poll data from directory csv\n")
fmt.Printf("\t-p:\tGenerate plots\n")
fmt.Printf("\t-r ID:\tReport by identifier (ID):\n")
fmt.Printf("\t\tSC\tSC = state code (E.g. AL).\n")
fmt.Printf("\t\tEC\tElectoral College outcome.\n")
fmt.Printf("\t-p:\tGenerate plots\n\n")
fmt.Printf("Exit codes:\n")
fmt.Printf("\t0\tNormal completion.\n")
fmt.Printf("\t\tEC\tElectoral College tallies for all states.\n")
fmt.Printf("\nExit codes:\n")
fmt.Printf("\t0\tNormal completion or help shown due to command line error.\n")
fmt.Printf("\t1\tSomething went wrong during execution.\n\n")
os.Exit(1)
os.Exit(0)
}

// Walk the base JMOD file and count the bytes for all classes/*.class entries
Expand Down

0 comments on commit 4c6f421

Please sign in to comment.