|
|
|
@ -111,11 +111,11 @@ do
|
|
|
|
|
*) print_help illegal_opt;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
program=${*:0-1}
|
|
|
|
|
shift "$((OPTIND-1))"
|
|
|
|
|
program=$1
|
|
|
|
|
|
|
|
|
|
# ensure that positional argument exists
|
|
|
|
|
if [[ -z $program ]] || [[ $program =~ ^- ]] || \
|
|
|
|
|
[[ ${*:0-2:1} =~ ^-[b-ln-z]$ ]]; then
|
|
|
|
|
if [[ -z $program ]]; then
|
|
|
|
|
echo "1 positional argument is required." \
|
|
|
|
|
"For help use -h or --help or see the manpage." | \
|
|
|
|
|
tee -a /tmp/tdrop/log
|
|
|
|
@ -718,7 +718,6 @@ auto_show() {
|
|
|
|
|
# Main
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if [[ -n $1 ]]; then
|
|
|
|
|
if $auto_detect_wm; then
|
|
|
|
|
wm=$(get_window_manager)
|
|
|
|
|
wm_autoset_for_all
|
|
|
|
@ -739,8 +738,5 @@ if [[ -n $1 ]]; then
|
|
|
|
|
else
|
|
|
|
|
wid_toggle
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
print_help illegal_opt
|
|
|
|
|
fi
|
|
|
|
|
# vim is dumb
|
|
|
|
|
# vim: set ft=sh noet:
|
|
|
|
|