diff options
| author | Daniel Byron <=> | 2015-07-20 01:28:13 +1000 |
|---|---|---|
| committer | Daniel Byron <=> | 2015-07-20 01:28:13 +1000 |
| commit | 9d50530857462015e0194f4c70e55e3f5fa6c7a9 (patch) | |
| tree | 5c06968eba27c78d0133ffd67888ea6355f33fc1 | |
| parent | Neatened up help output (diff) | |
| download | schemer2-9d50530857462015e0194f4c70e55e3f5fa6c7a9.tar.xz schemer2-9d50530857462015e0194f4c70e55e3f5fa6c7a9.zip | |
Yet more changes to command line invocation
| -rw-r--r-- | TODO.md | 12 | ||||
| -rw-r--r-- | main.go | 6 |
2 files changed, 7 insertions, 11 deletions
@@ -1,18 +1,14 @@ # To Do -- Redesign command line interface to accomodate new features -> Possible Idea: -> schemer2 -format=xfce->img -in=terminalrc -out=image.png - +- Add advanced options for advanced manipulation of image generation - Support for following terminal inputs - + Xterm - + Urxvt + + Xterm (Partially done, needs more testing) + + Urxvt (See: xterm) + Mac Terminal + iTerm2 + RoxTerm + Konsole + Plain text -- Expose more advanced options for image generation -- Write more tests +- Write more tests and find existing configurations for terminals to test against @@ -81,12 +81,12 @@ func main() { } if *format_string == "" { fmt.Println("Input and output format must be specified using '-format' flag.") - usage() + flags_usage() os.Exit(2) } if *infile == "" { fmt.Println("Input file must be provided using '-in' flag.") - usage() + flags_usage() os.Exit(2) } if *minBrightness > 255 || *maxBrightness > 255 { @@ -106,7 +106,7 @@ func main() { // And get colors from file using specified format if len(strings.SplitN(*format_string, format_separator, 2)) < 2 { fmt.Println("Invalid format string. Separate input and output formats with: '" + format_separator + "'") - usage() + flags_usage() os.Exit(2) } input_format := strings.SplitN(*format_string, format_separator, 2)[0] |