Reimplement ParseArgs() with getopt()

The command-line interface is intended to be equivalent. For example,
consider this command:

    $ rascsi -ID0 zero.hda -ID1 one.hda

This is no longer two pairs (ID0, zero.hda), (ID1, one.hda), but a
sequence of commands:

* -I: next disk is SCSI (not SASI)
* -D 0: next disk is device 0
* zero.hda: set up disk
* -I: next disk is SCSI (not SASI)
* -D 1: next disk is device 1
* one.hda: set up disk

Since SCSI is [now] the default, this could equivalently be:

    $ rascsi -d 0 zero.hda -d 1 one.hda
This commit is contained in:
Chris Pickel
2020-08-09 07:52:58 +01:00
parent 8b340fde89
commit 46e03a4026
2 changed files with 73 additions and 130 deletions

BIN
src/raspberrypi/foo.hda Normal file

Binary file not shown.