mirror of
https://github.com/gay-pizza/jaarg.git
synced 2025-12-19 07:20:18 +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(
|
let map = match OPTIONS.parse_map(
|
||||||
SimplePathBuf::from(*args.first().unwrap()).basename(),
|
SimplePathBuf::from(*args.first().unwrap()).basename(),
|
||||||
args.iter().skip(1),
|
args.iter().skip(1),
|
||||||
|name| {
|
|program_name| {
|
||||||
let ctx = HelpWriterContext { options: &OPTIONS, program_name: name };
|
let ctx = HelpWriterContext { options: &OPTIONS, program_name };
|
||||||
print!("{}", StandardFullHelpWriter::new(ctx));
|
print!("{}", StandardFullHelpWriter::new(ctx));
|
||||||
},
|
},
|
||||||
|program_name, err| {
|
|program_name, error| {
|
||||||
let ctx = ErrorUsageWriterContext { options: &OPTIONS, program_name, error: err };
|
let ctx = ErrorUsageWriterContext { options: &OPTIONS, program_name, error };
|
||||||
eprint!("{}", StandardErrorUsageWriter::new(ctx));
|
eprint!("{}", StandardErrorUsageWriter::new(ctx));
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user