DISK: Ignore NULL unit with HELP <dev> ATTACH for disk devices

Related to activities in #801
This commit is contained in:
Mark Pizzolato 2020-02-10 10:41:33 -08:00
parent a562c8727b
commit e333a691d0

View file

@ -2593,8 +2593,7 @@ fprintf (st, "was created. This metadata is therefore available whenever that V
fprintf (st, "attached to an emulated disk device in the future so the device type and\n"); fprintf (st, "attached to an emulated disk device in the future so the device type and\n");
fprintf (st, "size can be automatically be configured.\n\n"); fprintf (st, "size can be automatically be configured.\n\n");
if (0 == (uptr-dptr->units)) { if (dptr->numunits > 1) {
if (dptr->numunits > 1) {
uint32 i, attachable_count = 0, out_count = 0, skip_count; uint32 i, attachable_count = 0, out_count = 0, skip_count;
for (i=0; i < dptr->numunits; ++i) for (i=0; i < dptr->numunits; ++i)
@ -2622,11 +2621,8 @@ if (0 == (uptr-dptr->units)) {
--skip_count; --skip_count;
} }
} }
else
fprintf (st, " sim> ATTACH {switches} %s diskfile\n", dptr->name);
}
else else
fprintf (st, " sim> ATTACH {switches} %s diskfile\n\n", dptr->name); fprintf (st, " sim> ATTACH {switches} %s diskfile\n", dptr->name);
fprintf (st, "\n%s attach command switches\n", dptr->name); fprintf (st, "\n%s attach command switches\n", dptr->name);
fprintf (st, " -R Attach Read Only.\n"); fprintf (st, " -R Attach Read Only.\n");
fprintf (st, " -E Must Exist (if not specified an attempt to create the indicated\n"); fprintf (st, " -E Must Exist (if not specified an attempt to create the indicated\n");