Updated help
This commit is contained in:
parent
3a3ac85f52
commit
3505af6830
22
tt.go
22
tt.go
@ -56,11 +56,23 @@ func main() {
|
|||||||
flag.IntVar(&n, "n", 50, "The number of random words which constitute the test.")
|
flag.IntVar(&n, "n", 50, "The number of random words which constitute the test.")
|
||||||
flag.BoolVar(&csvMode, "csv", false, "Print the test results to stdout in the form <cpm>,<wpm>,<accuracy>.")
|
flag.BoolVar(&csvMode, "csv", false, "Print the test results to stdout in the form <cpm>,<wpm>,<accuracy>.")
|
||||||
flag.Usage = func() {
|
flag.Usage = func() {
|
||||||
fmt.Println("\033[0;1mUsage:\033[0m\n")
|
fmt.Println(`Usage: tt [options]
|
||||||
fmt.Println("\033[0;1mKeybindings:\033[0m")
|
|
||||||
fmt.Println(" <esc> Restarts the test")
|
By default tt creates a test consisting of 50 random words. Aribitrary text can also be piped directly into the program to create a custom test.
|
||||||
fmt.Println(" <C-c> Terminated tt\n")
|
|
||||||
fmt.Println("\033[0;1mOptions:\033[0m")
|
E.G
|
||||||
|
|
||||||
|
shuf -n 40 /etc/dictionaries-common/words|tr '\n' ' '|fold -s -w 80|tt
|
||||||
|
|
||||||
|
Note that linebreaks are determined exclusively by the input.
|
||||||
|
|
||||||
|
Keybindings:
|
||||||
|
<esc> Restarts the test
|
||||||
|
<C-c> Terminated tt
|
||||||
|
<C-backspace> Deletes the previous word
|
||||||
|
|
||||||
|
Options:`)
|
||||||
|
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
}
|
}
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user