From 6c1d1cdb79184c4992f14062b40218f120a1d6b7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 14 Oct 2022 23:17:09 -0300 Subject: bin/uri: Split help option parsing from main program logic --- bin/uri | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/uri b/bin/uri index 23716b9..dfd4cfe 100755 --- a/bin/uri +++ b/bin/uri @@ -66,7 +66,10 @@ if ($opts{h}) { say STDERR ''; usage *STDERR; exit 2; -} elsif ($opts{d}) { +} + + +if ($opts{d}) { print URI::Escape::uri_unescape(); } else { print URI::Escape::uri_escape(); -- cgit v1.2.3