mirror of
https://github.com/gay-pizza/jaarg.git
synced 2025-12-18 23:10:17 +00:00
Tweak btreemap_nostd demo callback argument names
This commit is contained in:
@@ -27,12 +27,12 @@ extern "C" fn safe_main(args: &[&str]) -> ExitCode {
|
||||
let map = match OPTIONS.parse_map(
|
||||
SimplePathBuf::from(*args.first().unwrap()).basename(),
|
||||
args.iter().skip(1),
|
||||
|name| {
|
||||
let ctx = HelpWriterContext { options: &OPTIONS, program_name: name };
|
||||
|program_name| {
|
||||
let ctx = HelpWriterContext { options: &OPTIONS, program_name };
|
||||
print!("{}", StandardFullHelpWriter::new(ctx));
|
||||
},
|
||||
|program_name, err| {
|
||||
let ctx = ErrorUsageWriterContext { options: &OPTIONS, program_name, error: err };
|
||||
|program_name, error| {
|
||||
let ctx = ErrorUsageWriterContext { options: &OPTIONS, program_name, error };
|
||||
eprint!("{}", StandardErrorUsageWriter::new(ctx));
|
||||
}
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user