We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a809dd commit 17a7fa0Copy full SHA for 17a7fa0
debugger/src/main.rs
@@ -154,9 +154,13 @@ impl Cli {
154
println!("expected filename, usage: i(input) <filename>");
155
}
156
157
- x if x.starts_with("id ") => {
158
- let input = &command[3..];
159
- self.context.load_input_direct(input.to_owned());
+ x if x.starts_with("id") => {
+ let input_text = Self::extract_arg(command);
+ if let Some(input_text) = input_text {
160
+ self.context.load_input_direct(input_text.to_owned());
161
+ } else {
162
+ println!("expected input text, usage: id <input text>");
163
+ }
164
165
breakpoint if "breakpoint".starts_with(breakpoint) => {
166
let rule = Self::extract_arg(command);
0 commit comments