Commit abce728e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: drop support for options without --

parent f3ccce3e
...@@ -253,6 +253,7 @@ Examples: ...@@ -253,6 +253,7 @@ Examples:
epm play yandex-browser = beta epm play yandex-browser = beta
epm play telegram = beta epm play telegram = beta
epm play telegram = 4.7.1 epm play telegram = 4.7.1
epm play --update all
EOF EOF
} }
...@@ -424,7 +425,7 @@ case "$1" in ...@@ -424,7 +425,7 @@ case "$1" in
__epm_play_initialize_ipfs __epm_play_initialize_ipfs
;; ;;
--remove|remove) --remove)
shift shift
if [ -z "$1" ] ; then if [ -z "$1" ] ; then
fatal "run --remove with 'all' or a project name" fatal "run --remove with 'all' or a project name"
...@@ -466,7 +467,7 @@ case "$1" in ...@@ -466,7 +467,7 @@ case "$1" in
exit exit
;; ;;
--installed|installed) --installed)
shift shift
__is_app_installed "$1" "$2" __is_app_installed "$1" "$2"
#[ -n "$quiet" ] && exit #[ -n "$quiet" ] && exit
...@@ -482,7 +483,7 @@ case "$1" in ...@@ -482,7 +483,7 @@ case "$1" in
__list_installed_packages __list_installed_packages
exit exit
;; ;;
--list|--list-installed|list|list-installed) --list|--list-installed)
__epm_play_list_installed __epm_play_list_installed
exit exit
;; ;;
...@@ -493,7 +494,7 @@ case "$1" in ...@@ -493,7 +494,7 @@ case "$1" in
exit exit
;; ;;
--list-all|list-all) --list-all)
[ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications (for current arch $DISTRARCH):" [ -n "$short" ] || [ -n "$quiet" ] || echo "Available applications (for current arch $DISTRARCH):"
__epm_play_list $psdir __epm_play_list $psdir
[ -n "$quiet" ] || [ -n "$*" ] && exit [ -n "$quiet" ] || [ -n "$*" ] && exit
...@@ -503,7 +504,7 @@ case "$1" in ...@@ -503,7 +504,7 @@ case "$1" in
exit exit
;; ;;
--list-scripts|list-scripts) --list-scripts)
[ -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