Commit 5c022086 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-autoremove: show help on any system

parent dd3bbef3
...@@ -232,12 +232,13 @@ Use ...@@ -232,12 +232,13 @@ Use
epm_autoremove() epm_autoremove()
{ {
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
epm_autoremove_print_help
return 0
fi
case $BASEDISTRNAME in case $BASEDISTRNAME in
"alt") "alt")
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
epm_autoremove_print_help
return 0
fi
if [ -z "$direct" ] ; then if [ -z "$direct" ] ; then
[ -n "$1" ] && fatal "Run autoremove without args or with --direct. Check epm autoremove --help to available commands." [ -n "$1" ] && fatal "Run autoremove without args or with --direct. Check epm autoremove --help to available commands."
......
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