forked from bonsai/harakit
fop(1): updated to use new optind api
This commit is contained in:
parent
35ddc729fd
commit
05cde15105
@ -50,7 +50,7 @@ fn main() {
|
|||||||
eprintln!("{}: {}: Not a character.", argv[0], arg);
|
eprintln!("{}: {}: Not a character.", argv[0], arg);
|
||||||
exit(EX_USAGE);
|
exit(EX_USAGE);
|
||||||
} else { d = arg_char[0]; }
|
} else { d = arg_char[0]; }
|
||||||
index_arg = o.ind as usize;
|
unsafe { index_arg = *o.ind as usize; }
|
||||||
},
|
},
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
eprintln!("{}", usage);
|
eprintln!("{}", usage);
|
||||||
|
Loading…
Reference in New Issue
Block a user