in reply to Why is it good practice for a cli script to take switch args before file list?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is it good practice for a cli script to take switch args before file list?
by rodion (Chaplain) on Jul 19, 2006 at 21:38 UTC | |
by swampyankee (Parson) on Jul 20, 2006 at 03:06 UTC |