utils/command-handler: fix symbol-arg copy-pasta

Fixes #2361.
This commit is contained in:
Dirk-Jan C. Binnema
2022-11-13 15:03:07 +02:00
parent aa6fd3e757
commit ed08118652

View File

@ -116,7 +116,7 @@ struct Command: public Sexp {
* @return ref to symbol name, or Nothing if not found * @return ref to symbol name, or Nothing if not found
*/ */
Option<const std::string&> symbol_arg(const std::string& name) const { Option<const std::string&> symbol_arg(const std::string& name) const {
if (auto&& val{arg_val(name, Sexp::Type::String)}; !val) if (auto&& val{arg_val(name, Sexp::Type::Symbol)}; !val)
return Nothing; return Nothing;
else else
return val->symbol(); return val->symbol();