Skip to content

Commit

Permalink
Merge pull request #302 from ichiban/fix-1pl-file-args-empty
Browse files Browse the repository at this point in the history
fix 1pl's file arguments and allow empty args like `$ 1pl`
  • Loading branch information
ichiban authored Jul 22, 2023
2 parents b8ca24c + 5970281 commit b77736e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/1pl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Type Ctrl-C or 'halt.' to exit.
}

// Consult arguments.
if err := i.QuerySolution(`bagof(F, (member(X, ?), atom_chars(F, X)), Fs), consult(Fs).`, flag.Args()).Err(); err != nil {
if err := i.QuerySolution(`findall(F, (member(X, ?), atom_chars(F, X)), Fs), consult(Fs).`, flag.Args()).Err(); err != nil {
log.Panic(err)
}

Expand Down

0 comments on commit b77736e

Please sign in to comment.