Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Usage/syntax for command-line utilities
Just a quick bit of confusion here...
Why do we have drvctl(8) and gpt(8) (for example only, there are
others) which put the device-to-act-on at the end of the command:
gpt [-Hnqrv] [-m mediasize] [-s sectorsize] [-T timestamp]
command [command_options] device
while others such as dkctl(8) and scsictl(8) put the device-to-act-on
immediately after the utility name:
dkctl device command [arg [...]]
scsictl device command [arg [...]]
This just feels confusing, and leads to interesting error messages
if you enter the command in the incorrect sequence:
# scsictl start sd0
scsictl: start: No such file or directory
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost |
| & Network Engineer | | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+
Home |
Main Index |
Thread Index |
Old Index