diff --git a/cmd/dialect-import/main.go b/cmd/dialect-import/main.go index 863bcaad7..216f9f08d 100644 --- a/cmd/dialect-import/main.go +++ b/cmd/dialect-import/main.go @@ -286,7 +286,7 @@ func processDefinition( } processedDefs[defAddr] = struct{}{} - fmt.Fprintf(os.Stderr, "definition %s\n", defAddr) + fmt.Fprintf(os.Stderr, "processing definition %s\n", defAddr) content, err := getDefinition(isRemote, defAddr) if err != nil { @@ -565,7 +565,7 @@ func run(args []string) error { return err } - _, err = parser.Parse(args) + _, err = parser.Parse(args[1:]) if err != nil { return err } diff --git a/cmd/dialect-import/main_test.go b/cmd/dialect-import/main_test.go index f99af1ec9..75995fa19 100644 --- a/cmd/dialect-import/main_test.go +++ b/cmd/dialect-import/main_test.go @@ -48,7 +48,7 @@ func TestRun(t *testing.T) { require.NoError(t, err) defer os.Remove("testdialect.xml") - err = run([]string{"testdialect.xml"}) + err = run([]string{"", "testdialect.xml"}) require.NoError(t, err) _, err = os.ReadFile("testdialect/message_a_message.go")