@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user