* [PATCH] abilint: fix trivial typo when using abilint
@ 2021-10-29 1:17 tangmeng
0 siblings, 0 replies; only message in thread
From: tangmeng @ 2021-10-29 1:17 UTC (permalink / raw)
To: libabigail; +Cc: tangmeng
When using the abilint command, several problems were found:
1.When abilint prints its version information, it does not terminate
it with a newline.
2.There is a spelling error, the path is mistakenly written as patch.
3.There are extra fields in the help option.
* tools/abilint.cc (display_usage): End the usage message with a
newline and remove invalid option description.
(main): Add a newline after version string.
Signed-off-by: tangmeng <tangmeng@uniontech.com>
---
tools/abilint.cc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/abilint.cc b/tools/abilint.cc
index 856f935d..fc8dcc83 100644
--- a/tools/abilint.cc
+++ b/tools/abilint.cc
@@ -90,7 +90,7 @@ display_usage(const string& prog_name, ostream& out)
<< " --help display this message\n"
<< " --version|-v display program version information and exit\n"
<< " --debug-info-dir <path> the path under which to look for "
- << " --headers-dir|--hd <patch> the path to headers of the elf file\n"
+ << " --headers-dir|--hd <path> the path to headers of the elf file\n"
"debug info for the elf <abi-file>\n"
<< " --header-file|--hf <path> the path to one header of the elf file\n"
"debug info for the elf <abi-file>\n"
@@ -98,7 +98,7 @@ display_usage(const string& prog_name, ostream& out)
<< " --diff for xml inputs, perform a text diff between "
"the input and the memory model saved back to disk\n"
<< " --noout do not display anything on stdout\n"
- << " --stdin|-- read abi-file content from stdin\n"
+ << " --stdin read abi-file content from stdin\n"
<< " --tu expect a single translation unit file\n";
}
@@ -262,7 +262,8 @@ main(int argc, char* argv[])
if (opts.display_version)
{
emit_prefix(argv[0], cout)
- << abigail::tools_utils::get_library_version_string();
+ << abigail::tools_utils::get_library_version_string()
+ << "\n";
return 0;
}
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-29 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 1:17 [PATCH] abilint: fix trivial typo when using abilint tangmeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).