Fix some tests.
[lightning.git] / export.go
index c74baeb6451ef9374069d53f449f8b947e1d93a4..39af631e9a4e0b552f2e507f7c0fe37ffb17bed4 100644 (file)
--- a/export.go
+++ b/export.go
@@ -97,9 +97,8 @@ func (cmd *exporter) RunCommand(prog string, args []string, stdin io.Reader, std
                return 0
        } else if err != nil {
                return 2
-       }
-       if flag.NArg() > 0 {
-               err = fmt.Errorf("extra unparsed command line arguments: %q", flag.Args())
+       } else if flags.NArg() > 0 {
+               err = fmt.Errorf("errant command line arguments after parsed flags: %v", flags.Args())
                return 2
        }
 
@@ -175,7 +174,7 @@ func (cmd *exporter) RunCommand(prog string, args []string, stdin io.Reader, std
                retainTileSequences: true,
                compactGenomes:      map[string][]tileVariantID{},
        }
-       err = tilelib.LoadDir(context.Background(), *inputDir, nil)
+       err = tilelib.LoadDir(context.Background(), *inputDir)
        if err != nil {
                return 1
        }