Commit 0b5f7ffa authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: fix info about help if run with no args

parent 3b0ddb71
......@@ -273,6 +273,15 @@ cmd="$1"
eval lastarg=\${$#}
# Just printout help if run without args
if [ -z "$cmd" ] ; then
print_version
echo
fatal "Run $ $progname --help for get help"
fi
# if the first arg is some archive, suggest extract
if get_archive_type "$cmd" 2>/dev/null >/dev/null ; then
if is_target_format $lastarg ; then
......@@ -294,13 +303,6 @@ else
fi
# Just printout help if run without args
if [ -z "$cmd" ] ; then
print_version
echo
fatal "Run $ $progname --help for get help"
fi
# TODO: Если программа-архиватор не установлена, предлагать установку с помощью epm
case $cmd in
......
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