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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>