summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Czapliński <czapkofan@gmail.com>2018-10-26 00:07:17 +0200
committerMateusz Czapliński <czapkofan@gmail.com>2018-10-26 00:07:17 +0200
commit3b5aa9593806db388af4a7436698b1babe5462aa (patch)
tree6dddf0af68937ed5e8eba533cb5b9aa7247ddc07
parentd23f52c45d98ac058eb3502e3ee8354e431cab0e (diff)
implement my review requests
-rw-r--r--up.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/up.go b/up.go
index 498e758..0b7d1ca 100644
--- a/up.go
+++ b/up.go
@@ -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 {