Skip to content

Commit

Permalink
fix: help command
Browse files Browse the repository at this point in the history
`!(help hide)`, for example, was failing because `hide` is tagged with
`Tag::Builtin` and the logic for `hide` only accepted `Tag::Sym`.

This fix includes `Tag::Builtin` in the condition for the `help` logic.
  • Loading branch information
arthurpaulino committed Sep 4, 2024
1 parent bfe044b commit 2f91e49
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lurk/cli/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ impl<F: PrimeField32, H: Chipset<F>> MetaCmd<F, H> {
run: |repl, args, _path| {
if args.tag != Tag::Nil {
let arg = repl.peek1(args)?;
if arg.tag != Tag::Sym {
if !matches!(arg.tag, Tag::Sym | Tag::Builtin) {
bail!("Argument must be a symbol");
}
let sym_path = repl.zstore.fetch_symbol_path(arg);
Expand Down

0 comments on commit 2f91e49

Please sign in to comment.