Update the help for the query results command to make it less confusing.

Risk: Medium
Visibility: Medium

Signed-off-by: Jeremy Orlow <jorlow@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@2210 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/query_results b/cli/query_results
index 203c65a..7838787 100755
--- a/cli/query_results
+++ b/cli/query_results
@@ -13,16 +13,22 @@
 # First do all the options parsing
 parser = optparse.OptionParser()
 parser.add_option('-C', '--columns', action='store', dest='columns',
-            default='*', help='''columns to select:
+            default='*', help="""\
+By default or when using the -c flag: 
 kernel hostname test label machine_group reason tag user status
-''')
+
+OR
+
+When using the -w flag:
+test_idx test_name reason test_started_time test_finished_time job_tag job_name job_owner job_queued_time job_started_time job_finished_time hostname platform kernel status""")
 
 parser.add_option('-c', '--condition', action='store', dest='old_condition',
             help=("The WHERE condition for the query witten in the 'old style' "
                   "condition syntax for the original tko"))
 parser.add_option('-w', '--where', action='store', dest='new_condition',
             help=("The WHERE condition for the query witten in the 'new style' "
-                  "condition syntax for the new tko"))
+                  "condition syntax for new tko (see "
+                  "http://autotest.kernel.org/wiki/TkoHowTo  for more info)"))
 parser.add_option('-s', '--separator', action='store', default = ' | ',
             dest='separator', help = 'output separator')
 parser.add_option('-n', '--nocount', action='store_true', default=False,