Stupid things you should not do #1

> python generator.py –help
Opening –help
Outputting start code…
Outputting template…
Writing out finish…
Done

Do’h!!

> ls
–help generator.py

> rm –help
rm: illegal option — –
usage: rm [-f | -i] [-dPRrvW] file …
unlink file

> rm “–help”
rm: illegal option — –
usage: rm [-f | -i] [-dPRrvW] file …
unlink file

Gah! and hooray for GUIs

This entry was posted in Stupid things you should not do and tagged . Bookmark the permalink.

2 Responses to Stupid things you should not do #1

  1. Dave says:

    You want:

    rm — –help

    Cheers

  2. Dave says:

    Should have shown you how to test it as well.

    touch — –help
    ls
    rm — –help
    ls

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.