func usage() { fmt.Fprintf(os.Stderr, appInfo()) fmt.Fprintf(os.Stderr, "Usage:\n") fmt.Fprintf(os.Stderr, " %s [options] {URI-R} # TimeMap from CLI\n", os.Args[0]) fmt.Fprintf(os.Stderr, " %s [options] {URI-R} {%s} # Description of the closest Memento from CLI\n", os.Args[0], validDatetimes) fmt.Fprintf(os.Stderr, " %s [options] server # Run as a Web Service\n", os.Args[0]) fmt.Fprintf(os.Stderr, "\nOptions:\n") flag.PrintDefaults() fmt.Fprintf(os.Stderr, "\n") }
func usage() { fmt.Fprintf(os.Stderr, appInfo()) fmt.Fprintf(os.Stderr, "Usage:\n") fmt.Fprintf(os.Stderr, " %s [options] {URI-R} # TimeMap CLI\n", os.Args[0]) fmt.Fprintf(os.Stderr, " %s [options] {URI-R} {YYYY[MM[DD[hh[mm[ss]]]]]} # TimeGate CLI\n", os.Args[0]) fmt.Fprintf(os.Stderr, " %s [options] server # Run as a Web Service\n", os.Args[0]) fmt.Fprintf(os.Stderr, "\nOptions:\n") flag.PrintDefaults() fmt.Fprintf(os.Stderr, "\n") }