#include <Python.h>
+extern int Py_VerboseFlag;
+
#ifndef PORT
#define PORT 4000
#endif
if (argc > 0 && argv[0] != NULL && argv[0][0] != '\0')
progname = argv[0];
- while ((c = getopt(argc, argv, "")) != EOF) {
+ while ((c = getopt(argc, argv, "v")) != EOF) {
switch (c) {
+ case 'v':
+ Py_VerboseFlag++;
+ break;
default:
usage();
}
PyEval_AcquireThread(gtstate);
gtstate = NULL;
Py_Finalize();
- Py_Finalize();
+ /* And a second time, just because we can. */
+ Py_Finalize(); /* This should be harmless. */
}
exit(0);
}