Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmp: sync usage string #621

Merged
merged 1 commit into from
May 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions bin/cmp
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ my $saw_difference;
my %opt;
getopts('ls', \%opt) or usage();
if ($opt{'l'}) {
if ($opt{'s'}) {
warn "$Program: options -l and -s are incompatible\n";
exit EX_FAILURE;
}
usage() if $opt{'s'};
$volume = 2;
}
$volume = 0 if $opt{'s'};
Expand Down Expand Up @@ -226,7 +223,7 @@ sub skipnum {
}

sub usage {
warn "usage: $Program [-l] [-s] file1 file2 [skip1 [skip2]]\n";
warn "usage: $Program [-l | -s] file1 file2 [skip1 [skip2]]\n";
exit EX_USAGE;
}

Expand All @@ -238,7 +235,7 @@ cmp - compare two files

=head1 SYNOPSIS

cmp B<[-l]> B<[-s]> I<file1> I<file2> I<[skip1 [skip2]]>
cmp B<[-l | -s]> I<file1> I<file2> I<[skip1 [skip2]]>

=head1 DESCRIPTION

Expand Down
Loading