Skip to content

Commit d4fe6e5

Browse files
cli: Add missing -- when reading flags. (#26)
1 parent cd3ee02 commit d4fe6e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import (
1212
)
1313

1414
func convertMain(parsedArgs map[string]interface{}) error {
15-
scipIndex, err := readFromOption(parsedArgs["from"].(string))
15+
scipIndex, err := readFromOption(parsedArgs["--from"].(string))
1616
if err != nil {
1717
return err
1818
}
1919

2020
var lsifWriter io.Writer
21-
toPath := parsedArgs["to"].(string)
21+
toPath := parsedArgs["--to"].(string)
2222
if toPath == "-" {
2323
lsifWriter = os.Stdout
2424
} else if !strings.HasSuffix(toPath, ".lsif") {

0 commit comments

Comments
 (0)