mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
Port parsing of ssh args
This commit is contained in:
@@ -11,6 +11,15 @@ import (
|
||||
var _ = fmt.Print
|
||||
|
||||
func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
|
||||
if len(args) > 0 {
|
||||
switch args[0] {
|
||||
case "use-python":
|
||||
args = args[1:] // backwards compat from when we had a python implementation
|
||||
case "-h", "--help":
|
||||
cmd.ShowHelp()
|
||||
return
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user