Skip to content

Commit

Permalink
Merge pull request #396 from mknos/cat-question
Browse files Browse the repository at this point in the history
cat: stop accepting -? flag
  • Loading branch information
briandfoy authored Jan 2, 2024
2 parents a1d0ceb + 50e2bc0 commit ccd99ac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bin/cat
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ my ($VERSION) = '1.3';

my $Program = basename($0);

getopts ('benstuv?', \my %options) or do {
print <<EOF;
$Program version $VERSION
$Program [-benstuv] [file ...]
EOF

exit EX_FAILURE;
getopts('benstuv', \my %options) or do {
warn "$Program version $VERSION\n";
warn "usage: $Program [-benstuv] [file ...]\n";
exit EX_FAILURE;
};

my $ends = exists $options{'e'};
Expand Down

0 comments on commit ccd99ac

Please sign in to comment.