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
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ struct Command: public Sexp {
* @return ref to symbol name, or Nothing if not found
*/
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;
else
return val->symbol();