From 4894b84ebd92f73296d8c88268c044f91a0be048 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 20 Mar 2018 12:50:43 -0700 Subject: [PATCH] PUNCH: Add new file switch information to punch help --- sim_card.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sim_card.c b/sim_card.c index 0db3a74a..7806b658 100644 --- a/sim_card.c +++ b/sim_card.c @@ -527,7 +527,7 @@ sim_read_card(UNIT * uptr) } if (ferror(uptr->fileref)) { /* error? */ - perror("Card reader I/O error"); + sim_perror("Card reader I/O error"); clearerr(uptr->fileref); return SCPE_IOERR; } @@ -1127,6 +1127,10 @@ t_stat sim_card_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, cons fprintf (st, "Attach command switches\n"); fprintf (st, " -F Open the indicated card deck in a specific format (default\n"); fprintf (st, " is AUTO, alternatives are BIN, TEXT, BCD and CBN)\n"); + if ((uptr->flags & UNIT_RO) == 0) { + fprintf (st, " -N Create a new punch output file (default is to append to\n"); + fprintf (st, " an existing file if it exists)\n"); + } return SCPE_OK; }