Commit 73e30e24 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: allow subcommands without -- prefix

parent 11d14ef9
...@@ -206,7 +206,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then ...@@ -206,7 +206,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
fi fi
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] || [ "$1" = "remove" ] ; then
shift shift
#__check_installed_app "$1" || warning "$1 is not installed" #__check_installed_app "$1" || warning "$1 is not installed"
prescription="$1" prescription="$1"
...@@ -245,19 +245,19 @@ if [ "$1" = "--update" ] ; then ...@@ -245,19 +245,19 @@ if [ "$1" = "--update" ] ; then
exit exit
fi fi
if [ "$1" = "--installed" ] ; then if [ "$1" = "--installed" ] || [ "$1" = "installed" ] ; then
shift shift
__check_installed_app "$1" __check_installed_app "$1"
#[ -n "$quiet" ] && exit #[ -n "$quiet" ] && exit
exit exit
fi fi
if [ "$1" = "--list" ] || [ "$1" = "--list-installed" ] ; then if [ "$1" = "--list" ] || [ "$1" = "--list-installed" ] || [ "$1" = "list" ] || [ "$1" = "list-installed" ] ; then
__epm_play_list_installed __epm_play_list_installed
exit exit
fi fi
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then if [ "$1" = "--list-all" ] || [ "$1" = "list-all" ] || [ -z "$*" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications:" [ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications:"
__epm_play_list $psdir __epm_play_list $psdir
[ -n "$quiet" ] || [ -n "$*" ] && exit [ -n "$quiet" ] || [ -n "$*" ] && exit
...@@ -267,7 +267,7 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then ...@@ -267,7 +267,7 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
exit exit
fi fi
if [ "$1" = "--list-scripts" ] ; then if [ "$1" = "--list-scripts" ] || [ "$1" = "list-scripts" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || echo "Run with a name of a play script to run:" [ -n "$short" ] || [ -n "$quiet" ] || echo "Run with a name of a play script to run:"
__epm_play_list $prsdir __epm_play_list $prsdir
exit exit
......
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