diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 02:23:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 02:23:06 -0400 |
commit | 7bede3ac76f152f0c2f113d8c38a3d03c35c405a (patch) | |
tree | 8233c818295ecbbf065f368dca7de7b71bc196af /src/option.cc | |
parent | f4e13f34580d1b71736f3ea6451d24237ef6fe2c (diff) | |
download | fork-ledger-7bede3ac76f152f0c2f113d8c38a3d03c35c405a.tar.gz fork-ledger-7bede3ac76f152f0c2f113d8c38a3d03c35c405a.tar.bz2 fork-ledger-7bede3ac76f152f0c2f113d8c38a3d03c35c405a.zip |
Fixed the spelling of some option exceptions
Diffstat (limited to 'src/option.cc')
-rw-r--r-- | src/option.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/option.cc b/src/option.cc index 8b36e64c..9000030a 100644 --- a/src/option.cc +++ b/src/option.cc @@ -192,13 +192,13 @@ strings_list process_arguments(strings_list args, scope_t& scope) op_bool_tuple opt(find_option(scope, opt_name)); if (! opt.first) - throw_(option_error, "illegal option --" << name); + throw_(option_error, "Illegal option --" << name); if (opt.second && ! value && ++i != args.end() && value == NULL) { value = (*i).c_str(); DEBUG("option.args", " read option value from arg: " << value); if (value == NULL) - throw_(option_error, "missing option argument for --" << name); + throw_(option_error, "Missing option argument for --" << name); } process_option(opt.first->as_function(), scope, value, string("--") + name); @@ -215,7 +215,7 @@ strings_list process_arguments(strings_list args, scope_t& scope) for (char c = (*i)[x]; c != '\0'; x++, c = (*i)[x]) { op_bool_tuple opt(find_option(scope, c)); if (! opt.first) - throw_(option_error, "illegal option -" << c); + throw_(option_error, "Illegal option -" << c); option_queue.push_back(op_bool_char_tuple(opt.first, opt.second, c)); } @@ -227,7 +227,7 @@ strings_list process_arguments(strings_list args, scope_t& scope) DEBUG("option.args", " read option value from arg: " << value); if (value == NULL) throw_(option_error, - "missing option argument for -" << o.ch); + "Missing option argument for -" << o.ch); } process_option(o.op->as_function(), scope, value, string("-") + o.ch); } |