Skip to content

Commit 6b66b0e

Browse files
committed
Default --host to http://rest.wikimedia.org
1 parent 2d5da95 commit 6b66b0e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# htmldumper
2-
HTML dump script for Parsoid HTML
2+
Parsoid HTML dump script for RESTBase APIs like https://rest.wikimedia.org/.
33

44
## Installation
55

@@ -11,13 +11,13 @@ HTML dump script for Parsoid HTML
1111
Usage: node ./htmldumper
1212
Example: node htmldumper.js --domain en.wikipedia.org \
1313
--ns 0 --apiURL http://en.wikipedia.org/w/api.php \
14-
--host https://rest.wikimedia.org --saveDir /tmp
14+
--saveDir /tmp
1515
1616
Options:
1717
--apiURL [required]
1818
--domain [required]
1919
--ns [required]
20-
--host [required]
20+
--host [required] [default: "http://rest.wikimedia.org"]
2121
-d, --saveDir [default: no saving]
2222
```
2323

htmldumper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function makeDump (options) {
222222
if (module.parent === null) {
223223
var argParser = require('yargs')
224224
.usage('Create a HTML dump in a subdir\nUsage: $0'
225-
+ '\nExample:\nnode htmldumper.js --domain en.wikipedia.org --ns 0 --apiURL http://en.wikipedia.org/w/api.php --host http://rest.wikimedia.org')
225+
+ '\nExample:\nnode htmldumper.js --domain en.wikipedia.org --ns 0 --apiURL http://en.wikipedia.org/w/api.php')
226226
.demand(['apiURL', 'domain', 'ns', 'host'])
227227
.options('h', {
228228
alias: 'help'
@@ -231,11 +231,11 @@ if (module.parent === null) {
231231
.options('d', {
232232
alias : 'saveDir',
233233
default : ''
234-
});
234+
})
235235
//.default('apiURL', 'http://en.wikipedia.org/w/api.php')
236236
//.default('prefix', 'en.wikipedia.org')
237237
//.default('ns', '0')
238-
//.default('host', 'http://rest.wikimedia.org');
238+
.default('host', 'http://rest.wikimedia.org');
239239

240240
var argv = argParser.argv;
241241
if (argv.h) {

0 commit comments

Comments
 (0)