fop(1): more descriptive command arguments variable name
This commit is contained in:
parent
09193a14d5
commit
0f121cbac7
@ -79,7 +79,7 @@ fn main() {
|
||||
let mut fields = buf.split(&d).collect::<Vec<&str>>();
|
||||
|
||||
/* collect arguments for the operator command */
|
||||
let opts = argv
|
||||
let command_args = argv
|
||||
.iter()
|
||||
.clone()
|
||||
.skip(command_arg + 1) /* skip the command name */
|
||||
@ -87,7 +87,7 @@ fn main() {
|
||||
|
||||
/* spawn the command to operate on the field */
|
||||
let mut spawned = Command::new(operator)
|
||||
.args(opts) /* spawn with the specified arguments */
|
||||
.args(command_args) /* spawn with the specified arguments */
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped()) /* piped stdout to handle output ourselves */
|
||||
.spawn()
|
||||
|
Loading…
Reference in New Issue
Block a user