Skip to content

Fix positional argument error when file starts with `-`

Vasilii Iakliushin requested to merge 393553_fix_positional_argument_error into master

Contributes to gitlab#393553 (closed)

Problem

We provide file path in Args list, but it does not support files that start with dash at the beginning.

git ls-tree HEAD -test
error: unknown switch `e'

Solution

Provide path in PostSepArgs list.

git ls-tree HEAD -- -test

This command supports files that start with dash.

Merge request reports