summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/args.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs
index 31bd470..0014d66 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -183,8 +183,7 @@ impl Parser for LongOnlyParser {
fn print_help(&self, options: &Options) {
let mut lines = Vec::new();
- for (_, index) in &options.long {
- let ref option = options[*index];
+ for option in &options.options {
let left = match option.value_req {
ValueRequirement::None => format!("-{}", option.long()),
ValueRequirement::Required(name) => format!("-{}={}", option.long(), name),