aboutsummaryrefslogtreecommitdiff
path: root/oracle
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2014-02-11 16:52:16 -0500
committerAlan Donovan <adonovan@google.com>2014-02-11 16:52:16 -0500
commit08fadac0710af0af980b537e051f474d23056a55 (patch)
tree39c4f31388e75b59167e20309bb5ccf0b85e6dc2 /oracle
parent1f29e74bfac701d8dfa40b6aaa35d20a7685ac46 (diff)
downloadtools-08fadac0710af0af980b537e051f474d23056a55.tar.gz
go.tools/go/loader: simplify command-line syntax.
Previously, each word could be a package import path or a comma-separated list of *.go file names. Now, if the first word ends with ".go", all words are assumed to be Go source files. This makes it impossible to specify two ad-hoc packages from source files, but no-one needs that. FromArgs also takes a boolean indicating whether tests are wanted or not. Also: ssadump: add -test flag to set that boolean. For the oracle it's always true. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/61470047
Diffstat (limited to 'oracle')
-rw-r--r--oracle/oracle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/oracle/oracle.go b/oracle/oracle.go
index 9b25ae9..9625344 100644
--- a/oracle/oracle.go
+++ b/oracle/oracle.go
@@ -225,7 +225,7 @@ func Query(args []string, mode, pos string, ptalog io.Writer, buildContext *buil
conf := loader.Config{Build: buildContext, SourceImports: true}
// Determine initial packages.
- args, err := conf.FromArgs(args)
+ args, err := conf.FromArgs(args, true)
if err != nil {
return nil, err
}