[MediaWiki-commits] [Gerrit] usage message to stderr, not stdout - change (operations/dumps)
ArielGlenn has uploaded a new change for review. https://gerrit.wikimedia.org/r/62803 Change subject: usage message to stderr, not stdout .. usage message to stderr, not stdout Change-Id: I74d8773a7ff4fa425af455482fa27240fe83fc9a --- M xmldumps-backup/worker.py 1 file changed, 41 insertions(+), 41 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/dumps refs/changes/03/62803/1 diff --git a/xmldumps-backup/worker.py b/xmldumps-backup/worker.py index 7dcef04..76b6e6f 100644 --- a/xmldumps-backup/worker.py +++ b/xmldumps-backup/worker.py @@ -4050,47 +4050,47 @@ def usage(message = None): if message: print message - print Usage: python worker.py [options] [wikidbname] - print Options: --aftercheckpoint, --checkpoint, --chunk, --configfile, --date, --job, --addnotice, --delnotice, --force, --noprefetch, --nospawn, --restartfrom, --log, --cutoff - print --aftercheckpoint: Restart thie job from the after specified checkpoint file, doing the - printrest of the job for the appropriate chunk if chunks are configured - printor for the all the rest of the revisions if no chunks are configured; - printonly for jobs articlesdump, metacurrentdump, metahistorybz2dump. - print --checkpoint: Specify the name of the checkpoint file to rerun (requires --job, - printdepending on the file this may imply --chunk) - print --chunk: Specify the number of the chunk to rerun (use with a specific job - printto rerun, only if parallel jobs (chunks) are enabled). - print --configfile: Specify an alternative configuration file to read. - printDefault config file name: wikidump.conf - print --date:Rerun dump of a given date (probably unwise) - print --addnotice: Text message that will be inserted in the per-dump-run index.html - printfile; use this when rerunning some job and you want to notify the - printpotential downloaders of problems, for example. This option - printremains in effective for the specified wiki and date until - printthe delnotice option is given. - print --delnotice: Remove any notice that has been specified by addnotice, for - printthe given wiki and date. - print --job: Run just the specified step or set of steps; for the list, - printgive the option --job help - printThis option requires specifiying a wikidbname on which to run. - printThis option cannot be specified with --force. - print --dryrun: Don't really run the job, just print what would be done (must be used - printwith a specified wikidbname on which to run - print --force: remove a lock file for the specified wiki (dangerous, if there is - printanother process running, useful if you want to start a second later - printrun while the first dump from a previous date is still going) - printThis option cannot be specified with --job. - print --noprefetch: Do not use a previous file's contents for speeding up the dumps - print(helpful if the previous files may have corrupt contents) - print --nospawn: Do not spawn a separate process in order to retrieve revision texts - print --restartfrom: Do all jobs after the one specified via --job, including that one - print --log: Log progress messages and other output to logfile in addition to - printthe usual console output - print --cutoff: Given a cutoff date in mmdd format, display the next wiki for which - printdumps should be run, if its last dump was not after the cutoff date, - printand exit, or if there are no such wikis, just exit - print --verbose: Print lots of stuff (includes printing full backtraces for any exception) - printThis is used primarily for debugging + sys.stderr.write( Usage: python worker.py [options] [wikidbname]\n ) + sys.stderr.write( Options: --aftercheckpoint, --checkpoint, --chunk, --configfile, --date, --job, --addnotice, --delnotice, --force, --noprefetch, --nospawn, --restartfrom, --log, --cutoff\n ) + sys.stderr.write( --aftercheckpoint: Restart thie job from the after specified checkpoint file, doing the\n ) + sys.stderr.write(rest of the job for the appropriate chunk if chunks are configured\n ) + sys.stderr.write(or for the all the rest of the revisions if no chunks are configured;\n ) +
[MediaWiki-commits] [Gerrit] usage message to stderr, not stdout - change (operations/dumps)
ArielGlenn has submitted this change and it was merged. Change subject: usage message to stderr, not stdout .. usage message to stderr, not stdout Change-Id: I74d8773a7ff4fa425af455482fa27240fe83fc9a --- M xmldumps-backup/worker.py 1 file changed, 41 insertions(+), 41 deletions(-) Approvals: ArielGlenn: Looks good to me, approved jenkins-bot: Verified diff --git a/xmldumps-backup/worker.py b/xmldumps-backup/worker.py index 7dcef04..76b6e6f 100644 --- a/xmldumps-backup/worker.py +++ b/xmldumps-backup/worker.py @@ -4050,47 +4050,47 @@ def usage(message = None): if message: print message - print Usage: python worker.py [options] [wikidbname] - print Options: --aftercheckpoint, --checkpoint, --chunk, --configfile, --date, --job, --addnotice, --delnotice, --force, --noprefetch, --nospawn, --restartfrom, --log, --cutoff - print --aftercheckpoint: Restart thie job from the after specified checkpoint file, doing the - printrest of the job for the appropriate chunk if chunks are configured - printor for the all the rest of the revisions if no chunks are configured; - printonly for jobs articlesdump, metacurrentdump, metahistorybz2dump. - print --checkpoint: Specify the name of the checkpoint file to rerun (requires --job, - printdepending on the file this may imply --chunk) - print --chunk: Specify the number of the chunk to rerun (use with a specific job - printto rerun, only if parallel jobs (chunks) are enabled). - print --configfile: Specify an alternative configuration file to read. - printDefault config file name: wikidump.conf - print --date:Rerun dump of a given date (probably unwise) - print --addnotice: Text message that will be inserted in the per-dump-run index.html - printfile; use this when rerunning some job and you want to notify the - printpotential downloaders of problems, for example. This option - printremains in effective for the specified wiki and date until - printthe delnotice option is given. - print --delnotice: Remove any notice that has been specified by addnotice, for - printthe given wiki and date. - print --job: Run just the specified step or set of steps; for the list, - printgive the option --job help - printThis option requires specifiying a wikidbname on which to run. - printThis option cannot be specified with --force. - print --dryrun: Don't really run the job, just print what would be done (must be used - printwith a specified wikidbname on which to run - print --force: remove a lock file for the specified wiki (dangerous, if there is - printanother process running, useful if you want to start a second later - printrun while the first dump from a previous date is still going) - printThis option cannot be specified with --job. - print --noprefetch: Do not use a previous file's contents for speeding up the dumps - print(helpful if the previous files may have corrupt contents) - print --nospawn: Do not spawn a separate process in order to retrieve revision texts - print --restartfrom: Do all jobs after the one specified via --job, including that one - print --log: Log progress messages and other output to logfile in addition to - printthe usual console output - print --cutoff: Given a cutoff date in mmdd format, display the next wiki for which - printdumps should be run, if its last dump was not after the cutoff date, - printand exit, or if there are no such wikis, just exit - print --verbose: Print lots of stuff (includes printing full backtraces for any exception) - printThis is used primarily for debugging + sys.stderr.write( Usage: python worker.py [options] [wikidbname]\n ) + sys.stderr.write( Options: --aftercheckpoint, --checkpoint, --chunk, --configfile, --date, --job, --addnotice, --delnotice, --force, --noprefetch, --nospawn, --restartfrom, --log, --cutoff\n ) + sys.stderr.write( --aftercheckpoint: Restart thie job from the after specified checkpoint file, doing the\n ) + sys.stderr.write(rest of the job for the appropriate chunk if chunks are configured\n ) + sys.stderr.write(or for the all the rest of the revisions if no chunks are configured;\n ) + sys.stderr.write(only for jobs