Skip to content

Commit 8f8aaa1

Browse files
authoredJun 29, 2021
Update 'sample' to 'number' for settings sampleSize (#169)
1 parent 01d70e2 commit 8f8aaa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the collection in JSON format to stdout.
1919
mongodb-schema mongodb://localhost:27017 mongodb.fanclub
2020
```
2121

22-
Additional arguments change the number of samples (`--sample`), print additional statistics about the
22+
Additional arguments change the number of samples (`--number`), print additional statistics about the
2323
schema analysis (`--stats`), switch to a different output format (`--format`), or let you suppress the
2424
schema output altogether (`--no-output`) if you are only interested in the schema statistics, semantic
2525
type discovery (`--semantic-types`), and the ability to disable value collection (`--no-values`).

‎bin/mongodb-schema

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var stats = require('stats-lite');
2121

2222
var argv = require('yargs')
2323
.strict()
24-
.usage('Usage: $0 <uri> <ns> [--format=<json|yaml|table> --sample=<n>]')
24+
.usage('Usage: $0 <uri> <ns> [--format=<json|yaml|table> --number=<n>]')
2525
.demand(2)
2626
.option('n', {
2727
alias: 'number',
@@ -79,7 +79,7 @@ var argv = require('yargs')
7979
.describe('h', 'Show this screen.')
8080
.help('h')
8181
.wrap(100)
82-
.example('$0 localhost:27017 mongodb.fanclub --sample 1000 --repeat 5 --stats '
82+
.example('$0 localhost:27017 mongodb.fanclub --number 1000 --repeat 5 --stats '
8383
+ '--no-output', 'analyze 1000 docs from the mongodb.fanclub '
8484
+ 'collection with the old ampersand parser, repeat 5 times and only show statistics.')
8585
.example('$0 localhost:27017 test.foo --format table',

0 commit comments

Comments
 (0)
Please sign in to comment.