Port parsing of ssh args

This commit is contained in:
Kovid Goyal
2023-02-20 17:18:43 +05:30
parent 12c8af60dc
commit 97b9572bec
3 changed files with 155 additions and 0 deletions

View File

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