/[LeafOK_CVS]/pvpgn-1.7.4/src/d2cs/cmdline_parse.c
ViewVC logotype

Diff of /pvpgn-1.7.4/src/d2cs/cmdline_parse.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Tue Jun 6 03:41:38 2006 UTC Revision 1.2 by sysadm, Tue Jun 13 16:07:52 2006 UTC
# Line 46  Line 46 
46    
47  static t_conf_table param_conf_table[]={  static t_conf_table param_conf_table[]={
48          { "-c",          offsetof(t_param,prefs_file),    conf_type_str, 0, D2CS_DEFAULT_CONF_FILE},          { "-c",          offsetof(t_param,prefs_file),    conf_type_str, 0, D2CS_DEFAULT_CONF_FILE},
49          { "--gsscope",   offsetof(t_param,scope_file),    conf_type_str, 0, D2GS_SCOPE_CONF_FILE},          { "--gsscope",   offsetof(t_param,scope_file),    conf_type_str, 0, D2GS_SCOPE_CONF_FILE  },
50            { "--charstatus",offsetof(t_param,cs_file),       conf_type_str, 0, CHAR_STATUS_DUMP_FILE },
51          { "-l",          offsetof(t_param,logfile),       conf_type_str, 0, NULL                  },          { "-l",          offsetof(t_param,logfile),       conf_type_str, 0, NULL                  },
52          { "-h",          offsetof(t_param,help),          conf_type_bool,0, NULL                  },          { "-h",          offsetof(t_param,help),          conf_type_bool,0, NULL                  },
53          { "--help",      offsetof(t_param,help),          conf_type_bool,0, NULL                  },          { "--help",      offsetof(t_param,help),          conf_type_bool,0, NULL                  },
# Line 68  static t_param cmdline_param; Line 69  static t_param cmdline_param;
69  static char help_message[]="\n"  static char help_message[]="\n"
70  "Usage: d2cs [<options>]\n"  "Usage: d2cs [<options>]\n"
71  "       -m <FILE>:              set memory debug logging file to FILE\n"  "       -m <FILE>:              set memory debug logging file to FILE\n"
72    "       --gsscope <FILE>:               set game server scope configuration file to FILE\n"
73    "       --charstatus <FILE>:            set character status dump file to FILE\n"
74  "       -c <FILE>:              set configuration file to FILE\n"  "       -c <FILE>:              set configuration file to FILE\n"
75  "       -l <FILE>:              set log to FILE\n"  "       -l <FILE>:              set log to FILE\n"
76  "       -h, --help:             show this help message and exit\n"  "       -h, --help:             show this help message and exit\n"
# Line 121  extern char const * cmdline_get_gsscope_ Line 124  extern char const * cmdline_get_gsscope_
124          return cmdline_param.scope_file;          return cmdline_param.scope_file;
125  }  }
126    
127    extern char const * cmdline_get_charstatus_file(void)
128    {
129            return cmdline_param.cs_file;
130    }
131    
132  extern unsigned int cmdline_get_help(void)  extern unsigned int cmdline_get_help(void)
133  {  {
134          return cmdline_param.help;          return cmdline_param.help;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1