Add history --help

This was probably an oversight - the builtin supports it, the function doesn't.
This commit is contained in:
Fabian Homborg 2016-03-29 19:56:14 +02:00
parent 0e18e2ba78
commit aacdaee6a9

View file

@ -36,6 +36,8 @@ function history --description "Deletes an item from history"
set cmd print set cmd print
case --merge case --merge
set cmd merge set cmd merge
case --help
set cmd help
case -- case --
set -e argv[$i] set -e argv[$i]
break break
@ -131,6 +133,8 @@ function history --description "Deletes an item from history"
builtin history $argv builtin history $argv
case merge case merge
builtin history --merge builtin history --merge
case help
builtin history --help
case clear case clear
# Erase the entire history # Erase the entire history
echo "Are you sure you want to clear history ? (y/n)" echo "Are you sure you want to clear history ? (y/n)"