arielf / cuts

Unix 'cut' (and 'paste') on steroids: more flexible select columns from files
Artistic License 2.0
66 stars 7 forks source link

option ambiguity fixer fails after -d regexp #1

Closed arielf closed 10 years ago

arielf commented 10 years ago

The option ambiguity detector which inserts -- between cuts options and ambiguous args (args starting with- like stdin and negative offsets) fails to work in some edge cases. It needs another adjustment to skip option-args e.g.:

$ cuts -d regex -1 file
Unknown option: 1
...