Changeset 20723 for gsdl/trunk/perllib/printusage.pm
- Timestamp:
- 2009-09-28T13:12:33+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/printusage.pm
r14965 r20723 170 170 my $options = shift(@_); 171 171 my $params = shift(@_); 172 my $programdesc = shift(@_);173 172 174 173 # this causes us to automatically send output to a pager, if one is … … 193 192 my $programname = $options->{'name'}; 194 193 my $programargs = $options->{'args'}; 194 my $programdesc = $options->{'desc'}; 195 195 196 196 # Find the length of the longest option string … … 201 201 202 202 # Produce the usage information using the data structure above 203 if ( $programdesc) {203 if (defined($programdesc)) { 204 204 &gsprintf(STDERR, $programname . ": $options->{'desc'}\n\n"); 205 205 }
Note:
See TracChangeset
for help on using the changeset viewer.