Display default option value if one is defined

This commit is contained in:
Duncan Ferguson 2014-06-08 09:51:58 +01:00
parent 13442fb156
commit 374775bf87

View file

@ -326,6 +326,10 @@ sub _generate_pod {
}
print '=item ', $desc, $/,$/;
print $self->{command_options}->{$longopt}->{help},$/,$/;
if($self->{command_options}->{$longopt}->{default}) {
print 'Default: ', $self->{command_options}->{$longopt}->{default}, $/, $/;
}
}
print '=back',$/,$/;