Browse Source

fzrepl: exit with usage when missing command

pull/17/merge
DanielFGray 2 years ago
parent
commit
2ba4b50536
  1. 5
      fzrepl

5
fzrepl

@ -67,6 +67,11 @@ for arg; do @@ -67,6 +67,11 @@ for arg; do
esac
done
if [[ -z $cmd ]]; then
usage
exit 1
fi
if [[ -z $cmd && -n $1 && ! -f $1 ]]; then
cmd="$1"
shift

Loading…
Cancel
Save