>> You need to specify the options before the files. > I already noticed it. The question is: *why*? probably because that's pretty much standard for most commands. You parse the parameters identified by the '-' prefix (with optional extra arg, if defined), and finish this once you find the first argument that has no '-'. Regards Guido