cmd/cue/cmd: ignore possible top-level tasks

This mimics the behavior of v0.2.2. Not doing so
caused some cue tool scripts to fail.

Change-Id: Iea6571d19daea31b7970d5603e8980911fec01f3
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7748
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/tools/flow/flow.go b/tools/flow/flow.go
index f028cee..44d0dde 100644
--- a/tools/flow/flow.go
+++ b/tools/flow/flow.go
@@ -134,6 +134,11 @@
 	// InferTasks allows tasks to be defined outside of the Root. Such tasks
 	// will only be included in the workflow if any of its fields is referenced
 	// by any of the tasks defined within Root.
+	//
+	// CAVEAT EMPTOR: this features is mostly provided for backwards
+	// compatibility with v0.2. A problem with this approach is that it will
+	// look for task structs within arbitrary data. So if not careful, there may
+	// be spurious matches.
 	InferTasks bool
 
 	// IgnoreConcrete ignores references for which the values are already