mirror of
https://github.com/peco/peco.git
synced 2026-09-13 16:56:16 -04:00
--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:
parent
da8d11008d
commit
67eb241d83
5
peco.go
5
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue