Fix format of HELP dev SHOW for MTAB entries with MTAB_SHP flag set

This commit is contained in:
Mark Pizzolato 2013-02-02 06:44:13 -08:00
parent 0eba66c72a
commit a036f40a80

4
scp.c
View file

@ -1157,7 +1157,7 @@ if (dptr->modifiers) {
continue;
if ((!mptr->disp) || (!mptr->pstring))
continue;
sprintf (buf, "show %s %s%s", sim_dname (dptr), mptr->pstring, (mptr->mask & MTAB_SHP) ? " arg" : "");
sprintf (buf, "show %s %s%s", sim_dname (dptr), mptr->pstring, (mptr->mask & MTAB_SHP) ? "=arg" : "");
fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : "");
}
}
@ -1171,7 +1171,7 @@ if (dptr->modifiers) {
continue;
if ((!mptr->disp) || (!mptr->pstring))
continue;
sprintf (buf, "show %s%s %s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->pstring, (mptr->mask & MTAB_SHP) ? " arg" : "");
sprintf (buf, "show %s%s %s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->pstring, (mptr->mask & MTAB_SHP) ? "=arg" : "");
fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : "");
}
}