From b3d40bb35d71e435b582bd5fb00cf3c437424f1f Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Wed, 11 Jun 2014 18:25:10 +0400 Subject: [PATCH] [dpaste] Add --help alias for help --- plugins/dpaste/dpaste.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/dpaste/dpaste.fish b/plugins/dpaste/dpaste.fish index c476769..795db9c 100644 --- a/plugins/dpaste/dpaste.fish +++ b/plugins/dpaste/dpaste.fish @@ -10,7 +10,7 @@ set __dpaste_expires_choises '(onetime|never|hour|week|month)' function __dpaste_set_defaults if [ -z $dpaste_keyword ] - set -g dpaste_keyword content + set -g dpaste_keyword 'content' end if [ -z $dpaste_url ] set -g dpaste_url 'https://dpaste.de/api/?format=url' @@ -45,9 +45,11 @@ Options: end function __dpaste_parse_help - if contains -- -h $argv - __dpaste_help + begin + contains -- -h $argv + or contains -- --help $argv end + and __dpaste_help end function dpaste