Changeset 27 for trunk/src/sh_getopt.c
- Timestamp:
- Apr 6, 2006, 8:55:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_getopt.c
r22 r27 80 80 sh_util_set_interactive }, 81 81 #endif 82 #if defined(SH_WITH_SERVER) || defined(SH_WITH_CLIENT) 83 { N_("server-port"), 84 '-', 85 N_("Set the server port to connect to"), 86 HAS_ARG_YES, 87 sh_forward_server_port }, 88 #endif 82 89 #ifdef SH_WITH_SERVER 83 90 { N_("server"), … … 112 119 HAS_ARG_YES, 113 120 sh_calls_set_bind_addr }, 114 #if def SH_WITH_CLIENT121 #if defined(SH_WITH_SERVER) || defined(SH_WITH_CLIENT) 115 122 { N_("set-export-severity"), 116 123 'e', … … 554 561 for (i = 0; op_table[i].longopt != NULL; ++i) 555 562 { 556 563 557 564 if (sl_strncmp(_(op_table[i].longopt), 558 565 &argv[1][2], … … 562 569 if ( op_table[i].hasArg == HAS_ARG_YES ) 563 570 { 564 if ( (theequal = strchr(argv[1], '=')) == NULL) 571 theequal = strchr(argv[1], '='); 572 if (theequal == NULL) 565 573 { 566 574 if (argc < 3)
Note:
See TracChangeset
for help on using the changeset viewer.