Update man page and readme to reflect the new syntax
This commit is contained in:
parent
cd405f4089
commit
347068b672
|
@ -102,12 +102,23 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>&dhpackage;</command>
|
<command>&dhpackage;</command>
|
||||||
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-a</option></arg>
|
||||||
<arg choice="opt"><option>--all</option></arg>
|
<arg choice="opt"><option>--all</option></arg>
|
||||||
|
</group>
|
||||||
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-q</option></arg>
|
||||||
|
<arg choice="opt"><option>--quiet</option></arg>
|
||||||
|
</group>
|
||||||
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-s</option></arg>
|
||||||
<arg choice="opt"><option>--style</option></arg>
|
<arg choice="opt"><option>--style</option></arg>
|
||||||
<arg choice="opt"><option>--recursive</option></arg>
|
</group>
|
||||||
<arg choice="opt"><option>--errorsonly</option></arg>
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-v</option></arg>
|
||||||
<arg choice="opt"><option>--verbose</option></arg>
|
<arg choice="opt"><option>--verbose</option></arg>
|
||||||
<arg choice="opt"><option>filename</option></arg>
|
</group>
|
||||||
|
<arg choice="opt"><option>file or path</option></arg>
|
||||||
<arg choice="plain"><option>...</option></arg>
|
<arg choice="plain"><option>...</option></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
@ -132,24 +143,18 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
found a bug. When this option is given, all messages are shown.</para>
|
found a bug. When this option is given, all messages are shown.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--quiet</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>Only print something when there is an error.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--style</option></term>
|
<term><option>--style</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Check coding style.</para>
|
<para>Check coding style.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
|
||||||
<term><option>--recursive</option></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Recursively check all *.cpp, *.cxx, *.cc and *.c files.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><option>--errorsonly</option></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Only print something when there is an error.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--verbose</option></term>
|
<term><option>--verbose</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
|
|
||||||
=========
|
=========
|
||||||
C++ check
|
Cppcheck
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,12 +22,12 @@ Compiling
|
||||||
Usage
|
Usage
|
||||||
|
|
||||||
The syntax is:
|
The syntax is:
|
||||||
cppcheck [--all] [--errorsonly] [--style] [--recursive] [filename1] [filename2]
|
cppcheck [--all] [--quiet] [--style] [file or path] [file or path]
|
||||||
|
|
||||||
The error messages will be printed to stderr.
|
The error messages will be printed to stderr.
|
||||||
|
|
||||||
Example (Check all files. Use all checks):
|
Example (Check all files. Use all checks):
|
||||||
cppcheck --style --all --recursive
|
cppcheck --style --all ./
|
||||||
|
|
||||||
To output error messages to a file use this syntax (works both on Windows and Linux):
|
To output error messages to a file use this syntax (works both on Windows and Linux):
|
||||||
cppcheck file.cpp 2> err.txt
|
cppcheck file.cpp 2> err.txt
|
||||||
|
|
Loading…
Reference in New Issue