From: Nicholas Nethercote Date: Sat, 12 Nov 2005 18:53:50 +0000 (+0000) Subject: Don't imply that the --tool option is mandatory. X-Git-Tag: svn/VALGRIND_3_1_0~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=094737800904e8a9789ff404ea9d45eae83278e8;p=thirdparty%2Fvalgrind.git Don't imply that the --tool option is mandatory. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5100 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index ca67c3dfba..05503f2430 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -859,7 +859,7 @@ static void load_client ( /*OUT*/struct exeinfo* info, static void usage_NORETURN ( Bool debug_help ) { Char* usage1 = -"usage: valgrind --tool= [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= use the Valgrind tool named [memcheck]\n" diff --git a/docs/xml/manual-core.xml b/docs/xml/manual-core.xml index b8809a657f..27845b0634 100644 --- a/docs/xml/manual-core.xml +++ b/docs/xml/manual-core.xml @@ -561,7 +561,7 @@ documented seperately for each tool. You invoke Valgrind like this: tool_name [valgrind-options] your-prog [your-prog options]]]> +valgrind [valgrind-options] your-prog [your-prog options]]]> Valgrind's default settings succeed in giving reasonable behaviour in most cases. We group the available options by rough @@ -573,7 +573,8 @@ categories. The single most important option. - --tool=name + --tool=<name> + [default=memcheck] Run the Valgrind tool called name, e.g. Memcheck, Addrcheck, Cachegrind, etc. diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index dffd8509ea..6ceb817e17 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -1,4 +1,4 @@ -usage: valgrind --tool= [options] prog-and-args +usage: valgrind [options] prog-and-args common user options for all Valgrind tools, with defaults in [ ]: --tool= use the Valgrind tool named [memcheck] diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index d0cfa744ea..cd54e32345 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -1,4 +1,4 @@ -usage: valgrind --tool= [options] prog-and-args +usage: valgrind [options] prog-and-args common user options for all Valgrind tools, with defaults in [ ]: --tool= use the Valgrind tool named [memcheck]