~ubuntu-branches/ubuntu/raring/esniper/raring

« back to all changes in this revision

Viewing changes to esniper.c

  • Committer: Bazaar Package Importer
  • Author(s): Dima Barsky
  • Date: 2011-06-08 17:39:21 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110608173921-3gu3xkcpelw3v5t8
Tags: 2.25.0-1
New upstream release (Closes: #627321)

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        NULL,           /* bidHost */
94
94
        NULL,           /* loginHost */
95
95
        NULL,           /* bidHost */
96
 
        0               /* curldebug */
 
96
        0,              /* curldebug */
 
97
        2      /* delay */
97
98
};
98
99
 
99
100
/* used for option table */
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}
157
159
};
158
160
 
495
497
 
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"
499
501
 "\n";
500
502
 
501
503
/* split in two to prevent gcc portability warning.  maximum length is 509 */
509
511
#endif
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"
550
553
 "    loginHost = %s\n"
551
554
 "    myeBayHost = %s\n"
552
555
 "  Numeric: (seconds may also be \"now\")\n"
 
556
 "    delay = 2\n"
553
557
 "    quantity = 1\n"
554
558
 "    seconds = %d\n"
555
559
 "\n";
804
808
                        }
805
809
                }
806
810
                if (!options.username) {
807
 
                        if (options.info) {
808
 
                                options.username = myStrdup("");
809
 
                                options.usernameEscape = myStrdup("");
810
 
                        } else if (options.batch) {
 
811
                        if (options.batch) {
811
812
                                printLog(stderr, "Error: no username specified.\n");
812
813
                                options.usage |= USAGE_SUMMARY;
813
814
                        } else if (!options.usage &&
816
817
                        }
817
818
                }
818
819
                if (!options.password) {
819
 
                        if (options.info) {
820
 
                        } else if (options.batch) {
 
820
                        if (options.batch) {
821
821
                                printLog(stderr, "Error: no password specified.\n");
822
822
                                options.usage |= USAGE_SUMMARY;
823
823
                        } else if (!options.usage &&