Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 2905a4e16dcd43d8b287adbe9a30248ab83cf08c |
|---|---|
| Date: | 2009-11-12 20:40:11 |
| User: | dmitry |
| Comment: | Update Usage text to make it more clean. |
Tags And Properties
- branch=trunk inherited from [160484ace7]
- sym-trunk inherited from [160484ace7]
Changes
Changes to src/main.go
@@ -39,17 +39,19 @@
}
return s;
}
func Usage() {
- fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]);
- fmt.Fprintf(os.Stderr, "friends | (nothing) - show friends timeline\n");
- fmt.Fprintf(os.Stderr, "@ | mentions - show mentions\n");
- fmt.Fprintf(os.Stderr, "public - show public timeline\n");
- fmt.Fprintf(os.Stderr, "u | user - show user timeline\n");
- fmt.Fprintf(os.Stderr, "p | post - post status update (followed by status)\n");
+ fmt.Fprintf(os.Stderr, "Usage: %s [options...] <action> ...\n"
+ "Options:\n", os.Args[0]);
flag.PrintDefaults();
+ fmt.Fprintf(os.Stderr, "Actions:\n"
+ " post Post status update (followed by status). Alias: p\n"
+ " user Show user timeline. Alias: u\n"
+ " friends Show friends timeline. Alias: (nothing)\n"
+ " mentions Show mentions. Alias: @\n"
+ " public Show public timeline\n");
}
func main() {
flag.Usage = Usage;
flag.Parse();