fop(1): more descriptive command arguments variable name

This commit is contained in:
Emma Tebibyte 2024-07-28 00:40:16 -06:00
parent 09193a14d5
commit 0f121cbac7
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -79,7 +79,7 @@ fn main() {
let mut fields = buf.split(&d).collect::<Vec<&str>>(); let mut fields = buf.split(&d).collect::<Vec<&str>>();
/* collect arguments for the operator command */ /* collect arguments for the operator command */
let opts = argv let command_args = argv
.iter() .iter()
.clone() .clone()
.skip(command_arg + 1) /* skip the command name */ .skip(command_arg + 1) /* skip the command name */
@ -87,7 +87,7 @@ fn main() {
/* spawn the command to operate on the field */ /* spawn the command to operate on the field */
let mut spawned = Command::new(operator) let mut spawned = Command::new(operator)
.args(opts) /* spawn with the specified arguments */ .args(command_args) /* spawn with the specified arguments */
.stdin(Stdio::piped()) .stdin(Stdio::piped())
.stdout(Stdio::piped()) /* piped stdout to handle output ourselves */ .stdout(Stdio::piped()) /* piped stdout to handle output ourselves */
.spawn() .spawn()