Fix no help for bp and resolve

This commit is contained in:
pjht 2022-10-24 08:37:04 -05:00
parent 73de019770
commit 4e065a55d0

View File

@ -363,7 +363,7 @@ fn main() -> Result<(), anyhow::Error> {
.help("The location to resolve") .help("The location to resolve")
.required(true), .required(true),
) )
.help("Resolve a location to an address"), .about("Resolve a location to an address"),
|args, state| { |args, state| {
let location = args.get_one::<String>("location").unwrap(); let location = args.get_one::<String>("location").unwrap();
Ok(Some(format!( Ok(Some(format!(
@ -386,7 +386,7 @@ fn main() -> Result<(), anyhow::Error> {
.requires("location") .requires("location")
.help("Delete the breakpoint instead of setting it"), .help("Delete the breakpoint instead of setting it"),
) )
.help("Set a breakpoint or list current breakpoints"), .about("Set a breakpoint or list current breakpoints"),
|args, state| { |args, state| {
if let Some(location) = args.get_one::<String>("location") { if let Some(location) = args.get_one::<String>("location") {
let location = state.symbol_tables.parse_location(location)?; let location = state.symbol_tables.parse_location(location)?;