From 67eb241d830d784dfd10a11ca670c7fcd52c76db Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sat, 3 Sep 2016 18:49:50 +0900 Subject: [PATCH] --tty is gone I looked through the git history, but it looks like this option was never supported. It was just copied over from percol, when I started this out. Juuuuust in case somebody might be specifying it (god knows) I'm leaving it here with a warning --- peco.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/peco.go b/peco.go index 330619e..484eaeb 100644 --- a/peco.go +++ b/peco.go @@ -383,6 +383,11 @@ func (p *Peco) parseCommandLine(opts *CLIOptions, args *[]string, argv []string) } } + if opts.OptTTY != "" { + p.Stderr.Write([]byte("Warning: --tty was never supported, and it will be removed in 0.5.x\n")) + time.Sleep(500 * time.Millisecond) // Wait, so that the user can see it + } + *args = remaining return nil