I know that -d /path/to/dir can be used to test command for checking a directory. Then:
if ( $argv[1] == "-d" )
does not work because of that.
However, I need to be able to pass -d as an argument to my script. How can I disable the special property of -d so I can pass it as an argument?