ParseOsArgs takes a string slice representing the full arguments passed to the program, including the filename and returns a CLI containing the filename and map of option types to their values.
(args []string)
| 148 | // the program, including the filename and returns a CLI containing the |
| 149 | // filename and map of option types to their values. |
| 150 | func ParseOsArgs(args []string) CLI { |
| 151 | return CLI{ |
| 152 | Filename: args[0], |
| 153 | Options: ParseArgs(args[1:]), |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | // DisplayHelp takes a filename and prints the help information for the program. |
| 158 | func DisplayHelp(filename string) { |