The stupid question is the question not asked | |
PerlMonks |
Re: Why is it good practice for a cli script to take switch args before file list?by swampyankee (Parson) |
on Jul 19, 2006 at 17:24 UTC ( [id://562361]=note: print w/replies, xml ) | Need Help?? |
I would say, pretty much regardless of O/S, most cli users are used to the form command <switches> <files>. After all, this is how most *ix, VMS, and Windows cli functions seem to work. While there are exceptions e.g., some compilers and printing-oriented utilities, and confusions, such as switches that take file names as arguments, it is normal practice. Whether or not "normal practice" is "best practice" is a separate issue. emc
In Section
Seekers of Perl Wisdom
|
|