From c947368ec3a73646165ea65d855cf2d580f5c821 Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Tue, 24 May 2022 14:01:51 -0700 Subject: [PATCH] cli: Add missing -- when reading flags. --- cmd/convert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/convert.go b/cmd/convert.go index c94f0389..2069570c 100644 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -12,13 +12,13 @@ import ( ) func convertMain(parsedArgs map[string]interface{}) error { - scipIndex, err := readFromOption(parsedArgs["from"].(string)) + scipIndex, err := readFromOption(parsedArgs["--from"].(string)) if err != nil { return err } var lsifWriter io.Writer - toPath := parsedArgs["to"].(string) + toPath := parsedArgs["--to"].(string) if toPath == "-" { lsifWriter = os.Stdout } else if !strings.HasSuffix(toPath, ".lsif") {