aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-30 17:25:48 +1300
committerDavid Phillips <david@sighup.nz>2019-03-30 17:41:21 +1300
commite2e2753dd706c5a482719ef686598620e92eb0f7 (patch)
treeea57a3faf9bb1ad13be1f1b2bc0899a0a787ee87
parenta9af007e92c653e39f28fe411c08ec388748a144 (diff)
downloadidalius-e2e2753dd706c5a482719ef686598620e92eb0f7.tar.xz
Convert: Correct output when only passed one operand
-rwxr-xr-xPlugin/Convert.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Plugin/Convert.pm b/Plugin/Convert.pm
index 46af1e2..1ee4f49 100755
--- a/Plugin/Convert.pm
+++ b/Plugin/Convert.pm
@@ -54,6 +54,7 @@ sub convert {
return "Syntax: convert <from> [to <to>]\n" unless ($from);
my $converted = convert_common($from, $to);
+ return "Define $from: $converted\n" unless $to;
return "Convert $from -> $to: $converted\n";
}