150
151
{"bidHost", NULL, (void*)&options.bidHost, OPTION_STRING, LOG_NORMAL, NULL, 0},
151
152
{"loginHost",NULL,(void*)&options.loginHost, OPTION_STRING, LOG_NORMAL, NULL, 0},
152
153
{"myeBayHost",NULL,(void*)&options.myeBayHost, OPTION_STRING, LOG_NORMAL, NULL, 0},
154
{"delay", "D", (void*)&options.delay, OPTION_INT, LOG_NORMAL, NULL, 0},
153
155
{NULL, "?", (void*)&options.usage, OPTION_BOOL, LOG_NORMAL, NULL, 0},
154
{NULL, "h", (void*)&options.usage, OPTION_STRING, LOG_NORMAL,SetLongHelp, 0},
155
{NULL, "H", (void*)&options.usage, OPTION_STRING, LOG_NORMAL,SetConfigHelp, 0},
156
{NULL, "h", (void*)&options.usage, OPTION_BOOL, LOG_NORMAL, SetLongHelp, 0},
157
{NULL, "H", (void*)&options.usage, OPTION_BOOL, LOG_NORMAL, SetConfigHelp, 0},
156
158
{NULL, NULL, NULL, 0, 0, NULL, 0}
496
498
static const char usageSummary[] =
497
499
"usage: %s [-bdhHnmPrUv] [-c conf_file] [-l logdir] [-p proxy] [-q quantity]\n"
498
" [-s secs|now] [-u user] (auction_file | [auction price ...])\n"
500
" [-s secs|now] [-u user] [-D delay] (auction_file | [auction price ...])\n"
501
503
/* split in two to prevent gcc portability warning. maximum length is 509 */
510
512
" file is specified, .esniper in auction file's directory)\n"
511
513
"-d: write debug output to file\n"
514
"-D: delay in seconds when retrieving auction list (default 2 seconds)\n"
512
515
"-h: command line options help\n"
513
516
"-H: configuration and auction file help\n"
514
517
"-i: get info on auctions and exit\n"
806
810
if (!options.username) {
808
options.username = myStrdup("");
809
options.usernameEscape = myStrdup("");
810
} else if (options.batch) {
811
812
printLog(stderr, "Error: no username specified.\n");
812
813
options.usage |= USAGE_SUMMARY;
813
814
} else if (!options.usage &&