mirror of
https://github.com/gay-pizza/jaarg.git
synced 2026-11-04 10:42:20 +00:00
Tweak btreemap_nostd demo callback argument names
This commit is contained in:
1 parent
ec0f3f0739
commit
934f08a4c2
1 file changed
+4
-4
@@ -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