Skip to content

Commit

Permalink
cp: bundled options (#649)
Browse files Browse the repository at this point in the history
* Single-letter options can be grouped; one combo I type sometimes is -iv
 * Tell Getopt::Long to allow this

%perl cp -iv ar ar.rar
'ar' -> 'ar.rar'
  • Loading branch information
mknos authored Jun 11, 2024
1 parent de844ae commit d70cdbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/cp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ sub process_arguments {
my %opts;

require Getopt::Long;
Getopt::Long::Configure('bundling');
Getopt::Long::GetOptionsFromArray(
\@args,
'f' => \$opts{'f'},
Expand Down

0 comments on commit d70cdbc

Please sign in to comment.