]> granicus.if.org Git - nethack/commit
{DEC,IBM,MAC}graphics (2 of 2: unixmain)
authorPatR <rankin@nethack.org>
Mon, 23 Mar 2015 01:29:37 +0000 (18:29 -0700)
committerPatR <rankin@nethack.org>
Mon, 23 Mar 2015 01:29:37 +0000 (18:29 -0700)
commit97ffd73addcdb6855ded7a71fdb2339ad636ec3e
treeecac6c5f43aad45adb54879a83fcdca3e80dede2
parent7b571b72f28d61894638f5e66831b93ec2ebed59
{DEC,IBM,MAC}graphics (2 of 2: unixmain)

Unix command line processing required that the initial 'd' of
"-DECgraphics" be lowercase so that it wouldn't conflict with -D for
wizard mode.  This retains -D for wizard mode and now also recognizes
"-debug" (case insensitive, but full 5 letters necessary) for the same
thing, and allows "-DECgraphics" to be capitalized as it is throughout
the rest of the program (actual matching is case-insensitive, so "-dec"
and "-decgraphics" still work.  It now requires that anything  after
"DEC" match the rest of that string instead of accepting "-DECanthing"
as a synonym for "-DECgraphics".  Likewise for "-IBMgraphics":  when
more than 3 letters are supplied, the extra ones must be an initial
substring of "graphics" rather than arbitrary characters.

The raw_printf() warnings don't actually work as intended, but that
isn't a change from the old behavior so I've left them in for now.
sys/unix/unixmain.c