From d8c3f98ef57cb51f2fd6f1da219dba0d45bb6e1b Mon Sep 17 00:00:00 2001 From: hylom Date: Tue, 25 Sep 2018 21:31:22 +0900 Subject: [PATCH] Command: fix force options problem --- src/newslash_web/lib/Newslash/Command.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newslash_web/lib/Newslash/Command.pm b/src/newslash_web/lib/Newslash/Command.pm index 8d85d1f7..cd0b188c 100644 --- a/src/newslash_web/lib/Newslash/Command.pm +++ b/src/newslash_web/lib/Newslash/Command.pm @@ -17,6 +17,7 @@ sub check_force_option { return; } @$args = grep { $_ !~ /^\s*-f\s*$/ } @$args; + return 1 if $self->danger; } } -- 2.11.0