From 7c694ad785a8cc81b8207f610cd4e5ccd4d662a1 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Sat, 20 Jun 2026 19:43:26 -0400 Subject: [PATCH] Remove deprecated option --version:paste This should have been deleted before the 5.0.0 release. --- doc/fixes5-0-1.txt | 1 + src/earlyarg.c | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/fixes5-0-1.txt b/doc/fixes5-0-1.txt index 710a23f69..7b3746481 100644 --- a/doc/fixes5-0-1.txt +++ b/doc/fixes5-0-1.txt @@ -66,6 +66,7 @@ when hero's behavior makes erinyes stronger, cap level at 49 rather than 50 with inventory item action for leash, distingluish leash-in-use from empty one deafness check was missing from a shopkeeper message in ready_weapon() thrown ball travel did not check for regions (pr #1595 by copperwater) +remove deprecated option --version:paste Platform- and/or Interface-Specific Fixes diff --git a/src/earlyarg.c b/src/earlyarg.c index 2d3315fdf..952defaaa 100755 --- a/src/earlyarg.c +++ b/src/earlyarg.c @@ -1,4 +1,4 @@ -/* NetHack 5.0 earlyarg.c $NHDT-Date: 1781973047 2026/06/20 16:30:47 $ $NHDT-Branch: NetHack-5.0 $:$NHDT-Revision: 1.10 $ */ +/* NetHack 5.0 earlyarg.c $NHDT-Date: 1782016695 2026/06/20 23:38:15 $ $NHDT-Branch: NetHack-5.0 $:$NHDT-Revision: 1.11 $ */ /* Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -498,11 +498,7 @@ argcheck(int argc, char *argv[], enum earlyarg e_arg) if (extended_opt) { extended_opt++; - /* Deprecated in favor of "copy" - remove no later - than next major version */ - if (match_optname(extended_opt, "paste", 5, FALSE)) { - insert_into_pastebuf = TRUE; - } else if (match_optname(extended_opt, "copy", 4, FALSE)) { + if (match_optname(extended_opt, "copy", 4, FALSE)) { insert_into_pastebuf = TRUE; } else if (match_optname(extended_opt, "dump", 4, FALSE)) { /* version number plus enabled features and sanity