snippet-end:[cloudtrail.go.list_trail_events] usage displays information on using this app Inputs: none Output: none
()
| 310 | // |
| 311 | // none |
| 312 | func usage() { |
| 313 | fmt.Println("Usage:") |
| 314 | fmt.Println("") |
| 315 | fmt.Println(" go run sqsQueueOps.go OPERATION") |
| 316 | fmt.Println("") |
| 317 | fmt.Println("where OPERATION is one of:") |
| 318 | fmt.Println(" -l") |
| 319 | fmt.Println(" list your trails") |
| 320 | fmt.Println(" -c TRAIL-NAME BUCKET-NAME") |
| 321 | fmt.Println(" create trail TRAIL-NAME that gets events from bucket BUCKET-NAME") |
| 322 | fmt.Println(" -d TRAIL-NAME") |
| 323 | fmt.Println(" delete trail TRAIL-NAME") |
| 324 | fmt.Println(" -e USER-NAME TRAIL-NAME") |
| 325 | fmt.Println(" show events from the user USER-NAME for trail TRAIL-NAME") |
| 326 | fmt.Println(" -h") |
| 327 | fmt.Println(" print this message and quit") |
| 328 | fmt.Println("") |
| 329 | } |
| 330 | |
| 331 | func main() { |
| 332 | // Parse args ourselves so the user can request only one operation |