Today a script I was using created some jpg files that looked like this:

-1.jpg
-2.jpg
........

I tried to remove them through shell, which produced this error:

# rm -1.jpg
rm: illegal option -- 1
usage: rm [-f | -i] [-dIPRrvW] file ...
unlink file

To remove this type of file try:

rm -- -1.jpg