diff --git a/src/cmd/apt_query/main.go b/src/cmd/apt_query/main.go index ab9056c..f0eaab3 100644 --- a/src/cmd/apt_query/main.go +++ b/src/cmd/apt_query/main.go @@ -20,7 +20,7 @@ func contains(arr []string, element string) bool { // Writes a message to STDERR and exits with status 1. func exitOnError(format string, arg ...any) { fmt.Fprintln(os.Stderr, fmt.Errorf(format+"\n", arg...)) - fmt.Println("Usage: apt_query.go normalized-list ") + fmt.Println("Usage: apt_query normalized-list ") os.Exit(1) } diff --git a/src/cmd/apt_query/main_test.go b/src/cmd/apt_query/main_test.go index a8d79bd..1855e6d 100644 --- a/src/cmd/apt_query/main_test.go +++ b/src/cmd/apt_query/main_test.go @@ -16,7 +16,7 @@ type RunResult struct { func run(t *testing.T, command string, pkgNames ...string) RunResult { stdout := &bytes.Buffer{} stderr := &bytes.Buffer{} - cmd := exec.Command("go", append([]string{"run", "apt_query.go", command}, pkgNames...)...) + cmd := exec.Command("go", append([]string{"run", "main.go", command}, pkgNames...)...) cmd.Stdout = stdout cmd.Stderr = stderr err := cmd.Run()