Fix -dumpglyphids on Unix

The order of the statements needs to be changed, so the -d is not
interpreted as requesting a directory.
This commit is contained in:
Ray Chason
2022-11-25 08:39:38 -05:00
parent d70bdeab3b
commit 51ec42886e

View File

@@ -114,12 +114,12 @@ main(int argc, char *argv[])
if (!dir)
dir = nh_getenv("HACKDIR");
#endif /* CHDIR */
/* handle -dalthackdir, -s <score stuff>, --version, --showpaths */
early_options(&argc, &argv, &dir);
#ifdef ENHANCED_SYMBOLS
if (argcheck(argc, argv, ARG_DUMPGLYPHIDS) == 2)
exit(EXIT_SUCCESS);
#endif
/* handle -dalthackdir, -s <score stuff>, --version, --showpaths */
early_options(&argc, &argv, &dir);
#ifdef CHDIR
/*
* Change directories before we initialize the window system so