diff options
author | Andinus <andinus@nand.sh> | 2020-06-11 02:24:50 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-11 02:24:50 +0530 |
commit | 8aa68033673c38827e4809dd16c4752a3db16a49 (patch) | |
tree | 6d66f254a952d8fee89b1a742ec1c8fcde70b129 | |
parent | 7fc03b6bb7520a0721e052b49c1da7a875538ed3 (diff) | |
download | pictor-8aa68033673c38827e4809dd16c4752a3db16a49.tar.gz |
Remove support for 'is'
User will no longer be able to run "pictor is wtf".
-rwxr-xr-x | pictor.pl | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pictor.pl b/pictor.pl index dafd413..82a797a 100755 --- a/pictor.pl +++ b/pictor.pl @@ -19,21 +19,11 @@ if (is_OpenBSD) { pledge( qw( stdio rpath unveil ) ) or die "Unable to pledge: $!"; -# $term will store the user input. -my $term; - # User must pass at least one argument. die "usage: pictor term\n" if @ARGV < 1; -# Assume first argument to be term. -$term = $ARGV[0]; - -# User can rename this program to "wtf" & run "wtf is wtf" instead of -# "wtf wtf", "wtf is term" looks better so we use $ARGV[1] as $term if -# $ARGV[0] is "is". -$term = $ARGV[1] - if $ARGV[0] eq "is"; +my $term = $ARGV[0]; # files contains list of all files to search for acronyms. my @files = ( |