diff options
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index d7cd9d1..db0c9d2 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -176,8 +176,7 @@ impl Repl { Some(args) => match args.split_once(|c| c == '\n' || c == ' ') { Some((name, text)) => { let role = self.config.read().retrieve_role(name.trim())?; - let input = - Input::from_str(text.trim(), InputContext::new(Some(role), false)); + let input = Input::from_str(text.trim(), InputContext::role(role)); self.ask(input).await?; } None => { |
