git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove --rules
[netris.git]
/
client.c
diff --git
a/client.c
b/client.c
index 013757261d907f97c0be72555406a4228baa3c50..ee27cf0635ff05ccd179024cb1ea3445e4f88760 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-44,7
+44,6
@@
static struct option options[] = {
{ "color", 2, 0, 'C' },
{ "slowterm", 2, 0, 'S' },
{ "keys", 1, 0, 'k' },
{ "color", 2, 0, 'C' },
{ "slowterm", 2, 0, 'S' },
{ "keys", 1, 0, 'k' },
- { "rules", 0, 0, 'R' },
{ "info", 0, 0, 'H' },
{ "help", 0, 0, 'h' },
{ 0, 0, 0, 0 }
{ "info", 0, 0, 'H' },
{ "help", 0, 0, 'h' },
{ 0, 0, 0, 0 }
@@
-121,7
+120,6
@@
static void Usage(void)
"\n"
" -h, --help\t\tPrint this usage information\n"
" -H, --info\t\tShow distribution and warranty information\n"
"\n"
" -h, --help\t\tPrint this usage information\n"
" -H, --info\t\tShow distribution and warranty information\n"
- " -R, --rules\t\tShow game rules\n"
"\n"
" -S, --slowterm\tDisable inverse/bold/color for slow terminals\n"
" -a, --ascii\t\tUse ascii characters\n"
"\n"
" -S, --slowterm\tDisable inverse/bold/color for slow terminals\n"
" -a, --ascii\t\tUse ascii characters\n"
@@
-177,9
+175,6
@@
static void handle_arg(char tag, char *value)
Header();
DistInfo();
exit(0);
Header();
DistInfo();
exit(0);
- case 'R': //rules
- Rules();
- exit(0);
case 'h': //help
Usage();
exit(0);
case 'h': //help
Usage();
exit(0);
@@
-794,7
+789,7
@@
int main(int argc, char **argv)
// else
handle_conffile(CONFIG_FILE);
while ((ch = getopt_long(
// else
handle_conffile(CONFIG_FILE);
while ((ch = getopt_long(
- argc, argv, "hH
R
k:c:n:oSCap:i:l:t:", options, NULL
+ argc, argv, "hHk:c:n:oSCap:i:l:t:", options, NULL
)) != -1)
handle_arg(ch, optarg);
if (optind < argc) {
)) != -1)
handle_arg(ch, optarg);
if (optind < argc) {