]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't imply that the --tool option is mandatory.
authorNicholas Nethercote <njn@valgrind.org>
Sat, 12 Nov 2005 18:53:50 +0000 (18:53 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sat, 12 Nov 2005 18:53:50 +0000 (18:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5100

coregrind/m_main.c
docs/xml/manual-core.xml
none/tests/cmdline1.stdout.exp
none/tests/cmdline2.stdout.exp

index ca67c3dfba1e1be435d616f6c8ced738ee812e84..05503f2430f9dcea254034dc5b772d7feadd28c7 100644 (file)
@@ -859,7 +859,7 @@ static void load_client ( /*OUT*/struct exeinfo* info,
 static void usage_NORETURN ( Bool debug_help )
 {
    Char* usage1 = 
-"usage: valgrind --tool=<toolname> [options] prog-and-args\n"
+"usage: valgrind [options] prog-and-args\n"
 "\n"
 "  common user options for all Valgrind tools, with defaults in [ ]:\n"
 "    --tool=<name>             use the Valgrind tool named <name> [memcheck]\n"
index b8809a657f51fd693ebeb15a7e5fdfba0f382daa..27845b0634cd19401d65827d037b1eb3a99f5243 100644 (file)
@@ -561,7 +561,7 @@ documented seperately for each tool.</para>
 <para>You invoke Valgrind like this:</para>
 
 <programlisting><![CDATA[
-valgrind --tool=<emphasis>tool_name</emphasis> [valgrind-options] your-prog [your-prog options]]]></programlisting>
+valgrind [valgrind-options] your-prog [your-prog options]]]></programlisting>
 
 <para>Valgrind's default settings succeed in giving reasonable
 behaviour in most cases.  We group the available options by rough
@@ -573,7 +573,8 @@ categories.</para>
 <para>The single most important option.</para>
   <itemizedlist>
    <listitem id="tool_name">
-    <para><computeroutput>--tool=name</computeroutput></para>
+    <para><computeroutput>--tool=&lt;name&gt;</computeroutput>
+    [default=memcheck]</para>
     <para>Run the Valgrind tool called <emphasis>name</emphasis>,
     e.g. Memcheck, Addrcheck, Cachegrind, etc.</para>
    </listitem>
index dffd8509eacc76a508c381d4c445cf3c1506303f..6ceb817e17e57c1f7fd087d7639cea9410e65f70 100644 (file)
@@ -1,4 +1,4 @@
-usage: valgrind --tool=<toolname> [options] prog-and-args
+usage: valgrind [options] prog-and-args
 
   common user options for all Valgrind tools, with defaults in [ ]:
     --tool=<name>             use the Valgrind tool named <name> [memcheck]
index d0cfa744ea9776ed153035d6c7be587cf07922a4..cd54e3234517fdd55ee30b02a77fb8b516b3185b 100644 (file)
@@ -1,4 +1,4 @@
-usage: valgrind --tool=<toolname> [options] prog-and-args
+usage: valgrind [options] prog-and-args
 
   common user options for all Valgrind tools, with defaults in [ ]:
     --tool=<name>             use the Valgrind tool named <name> [memcheck]