From b1b562d411d8a9e55cbc0dc761cf4a300b6798ec Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 6 May 2020 07:39:26 +0530 Subject: Support "pictor is term" syntax "pictor is term" looks better, even better if user renames this to wtf then user would be able to run "wtf is wtf" instead of the boring "pictor wtf" or "wtf wtf". --- pictor.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pictor.pl b/pictor.pl index de255ef..608c879 100755 --- a/pictor.pl +++ b/pictor.pl @@ -18,6 +18,12 @@ if (@ARGV < 1) { exit 1; } else { $term = $ARGV[0]; + + # User can rename this program to "wtf" & run "wtf is wtf" too + # instead of "wtf wtf" or "pictor wtf", "wtf is term" looks + # better. + $term = $ARGV[1] if + ($ARGV[0] eq "is") } # files contains list of all files to search for acronyms. -- cgit 1.4.1-2-gfad0