arduino command line open a file!!?!

Do you mean the Arduino device or the IDE? I've never tried adding a filename as an argument to opening the IDE, but it wouldn't be hard to implement.