"<http://gnu.org/licenses/agpl.html>\n"
"This is free software: you are free to change and redistribute it.\n"
"There is NO WARRANTY, to the extent permitted by law.\n"
- );
+ );
exit(0);
}
"--zorkid (accepts digits, defaults to 0 if not specified)\n"
"--serial (six characters of ASCII, defaults to current date\n"
" in the form YYMMDD if not specified)\n"
- );
+ );
exit(failed);
}
{
switch (opt)
{
- case 'h' : print_usage(0);
- case 'V' : print_version();
- case ZVERSION: parse_intarg(&Config.zversion, "zversion", 1, 8, 1); break;
- case ZORKID : parse_intarg(&Config.zorkid, "zorkid", 0, 255, 0); break;
- case ZSERIAL : parse_zserial(); break;
- default : wrong_arg();
+ case 'h' :
+ print_usage(0);
+ case 'V' :
+ print_version();
+ case ZVERSION:
+ parse_intarg(&Config.zversion, "zversion", 1, 8, 1);
+ break;
+ case ZORKID :
+ parse_intarg(&Config.zorkid, "zorkid", 0, 255, 0);
+ break;
+ case ZSERIAL :
+ parse_zserial();
+ break;
+ default :
+ wrong_arg();
}
}
"- ZorkID: %d\n"
"- ZSerial: %s\n",
Config.zversion, Config.zorkid, Config.zserial
- );
+ );
return 0;
}