--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
This commit is contained in:
Daisuke Maki 2016-09-03 18:49:50 +09:00
parent da8d11008d
commit 67eb241d83

View file

@ -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