From 8aa68033673c38827e4809dd16c4752a3db16a49 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 11 Jun 2020 02:24:50 +0530 Subject: Remove support for 'is' User will no longer be able to run "pictor is wtf". --- pictor.pl | 12 +----------- 1 file changed, 1 insertion(+), 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 = ( -- cgit 1.4.1-2-gfad0