Commit b3d40bb3 authored by Roman Inflianskas's avatar Roman Inflianskas Committed by Bruno Pinto

[dpaste] Add --help alias for help

parent feff0bb8
...@@ -10,7 +10,7 @@ set __dpaste_expires_choises '(onetime|never|hour|week|month)' ...@@ -10,7 +10,7 @@ set __dpaste_expires_choises '(onetime|never|hour|week|month)'
function __dpaste_set_defaults function __dpaste_set_defaults
if [ -z $dpaste_keyword ] if [ -z $dpaste_keyword ]
set -g dpaste_keyword content set -g dpaste_keyword 'content'
end end
if [ -z $dpaste_url ] if [ -z $dpaste_url ]
set -g dpaste_url 'https://dpaste.de/api/?format=url' set -g dpaste_url 'https://dpaste.de/api/?format=url'
...@@ -45,9 +45,11 @@ Options: ...@@ -45,9 +45,11 @@ Options:
end end
function __dpaste_parse_help function __dpaste_parse_help
if contains -- -h $argv begin
__dpaste_help contains -- -h $argv
or contains -- --help $argv
end end
and __dpaste_help
end end
function dpaste function dpaste
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment