parseCommandFlags parses the command flags
()
| 51 | |
| 52 | // parseCommandFlags parses the command flags |
| 53 | func parseCommandFlags() (args []string, helpFlag bool) { |
| 54 | help := flag.Bool("help", false, "Print help message") |
| 55 | h := flag.Bool("h", false, "Print help message") |
| 56 | flag.CommandLine.Parse(os.Args[2:]) |
| 57 | return flag.CommandLine.Args(), *help || *h |
| 58 | } |
| 59 | |
| 60 | func lookupClosestFile(name string) (filename string, exists bool, err error) { |
| 61 | cwd, err := os.Getwd() |