diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:32:10 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 09:32:10 +0000 |
commit | 48f82c742fbb20fd624a466f0f3dcbc9a9679768 (patch) | |
tree | 694e61fe55b10051d97cd89a73cd70de544d85c5 /arg_parser.cc | |
parent | Adding debian version 1.13~rc2-1. (diff) | |
download | lzip-48f82c742fbb20fd624a466f0f3dcbc9a9679768.tar.xz lzip-48f82c742fbb20fd624a466f0f3dcbc9a9679768.zip |
Merging upstream version 1.13.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'arg_parser.cc')
-rw-r--r-- | arg_parser.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arg_parser.cc b/arg_parser.cc index 27137a1..b3fd48d 100644 --- a/arg_parser.cc +++ b/arg_parser.cc @@ -56,30 +56,30 @@ bool Arg_parser::parse_long_option( const char * const opt, const char * const a if( ambig && !exact ) { - error_ = "option `"; error_ += opt; error_ += "' is ambiguous"; + error_ = "option '"; error_ += opt; error_ += "' is ambiguous"; return false; } if( index < 0 ) // nothing found { - error_ = "unrecognized option `"; error_ += opt; error_ += '\''; + error_ = "unrecognized option '"; error_ += opt; error_ += '\''; return false; } ++argind; data.push_back( Record( options[index].code ) ); - if( opt[len+2] ) // `--<long_option>=<argument>' syntax + if( opt[len+2] ) // '--<long_option>=<argument>' syntax { if( options[index].has_arg == no ) { - error_ = "option `--"; error_ += options[index].name; + error_ = "option '--"; error_ += options[index].name; error_ += "' doesn't allow an argument"; return false; } if( options[index].has_arg == yes && !opt[len+3] ) { - error_ = "option `--"; error_ += options[index].name; + error_ = "option '--"; error_ += options[index].name; error_ += "' requires an argument"; return false; } @@ -91,7 +91,7 @@ bool Arg_parser::parse_long_option( const char * const opt, const char * const a { if( !arg || !arg[0] ) { - error_ = "option `--"; error_ += options[index].name; + error_ = "option '--"; error_ += options[index].name; error_ += "' requires an argument"; return false; } |