aboutsummaryrefslogtreecommitdiffstats
path: root/fripost
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2012-09-09 14:29:49 +0200
committerStefan Kangas <skangas@skangas.se>2012-09-09 14:29:49 +0200
commit68bc524eb0ad9b203b05b6a4d902f4449967e510 (patch)
tree6c055dd641fcf6cf2537b84b94bd123194189615 /fripost
parent1e6179ff7b4724c5d907f9f922e8b9767c3f6b56 (diff)
Do not give "unknown command" when the user gave command ''
Diffstat (limited to 'fripost')
-rwxr-xr-xfripost2
1 files changed, 1 insertions, 1 deletions
diff --git a/fripost b/fripost
index 0c31088..7510643 100755
--- a/fripost
+++ b/fripost
@@ -397,7 +397,7 @@ elsif ($cmd eq 'search-alias') {
else {
pod2usage( -exitstatus => 1,
-verbose => 0,
- -msg => "Unknown command: `$cmd'.");
+ -msg => length $cmd > 0 ? "Unknown command: `$cmd'." : '' );
}