diff --git a/src/bin/dotify b/src/bin/dotify index 480da48..9a5104d 100755 --- a/src/bin/dotify +++ b/src/bin/dotify @@ -93,7 +93,11 @@ fi # Command is first argument that does not start with a dash or plus. for arg in "$@"; do - if [[ "$arg" != "-"* ]] && [[ "$arg" != "+"* ]]; then + if [ -n "$skip_next" ]; then + skip_next= + elif [[ "$arg" =~ ^(--dotfile|-f|--taraget|-t)$ ]]; then + skip_next=1 + elif [[ "$arg" != "-"* ]] && [[ "$arg" != "+"* ]]; then command="$arg" break fi