diff options
author | Mateusz Czapliński <czapkofan@gmail.com> | 2018-10-26 00:07:17 +0200 |
---|---|---|
committer | Mateusz Czapliński <czapkofan@gmail.com> | 2018-10-26 00:07:17 +0200 |
commit | 3b5aa9593806db388af4a7436698b1babe5462aa (patch) | |
tree | 6dddf0af68937ed5e8eba533cb5b9aa7247ddc07 | |
parent | d23f52c45d98ac058eb3502e3ee8354e431cab0e (diff) |
implement my review requests
-rw-r--r-- | up.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -29,10 +29,9 @@ import ( "os/exec" "sync" - flag "github.com/spf13/pflag" - "github.com/gdamore/tcell" "github.com/mattn/go-isatty" + "github.com/spf13/pflag" ) // TODO: some key shortcut to increase stdin capture buffer size (unless EOF already reached) @@ -63,14 +62,13 @@ import ( // TODO: [LATER] make it more friendly to infrequent Linux users by providing "descriptive" commands like "search" etc. // TODO: [LATER] advertise on: HN, r/programming, r/golang, r/commandline, r/linux, up-for-grabs.net; data exploration? data science? -// Flag Settings var ( - debugMode = flag.Bool("debug", false, "debug mode") + debugMode = pflag.Bool("debug", false, "debug mode") ) func main() { // Handle command-line flags - flag.Parse() + pflag.Parse() log.SetOutput(ioutil.Discard) if *debugMode { |