Skip to content

Commit

Permalink
fix comma and document http --quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
substack committed Nov 14, 2021
1 parent 5cb6910 commit c5ae428
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd.js
Expand Up @@ -6,10 +6,10 @@ var minimist = require('minimist')
var pump = require('pump')
var argv = minimist(process.argv.slice(2), {
alias: {
v: 'version', h: 'help'
v: 'version', h: 'help',
d: 'datadir', f: 'format', p: 'port', q: 'quiet'
}
boolean: ['quiet','help','version']
},
boolean: ['quiet','help','version'],
})

if (argv.help || argv._[0] === 'help') {
Expand All @@ -32,6 +32,7 @@ if (argv.help || argv._[0] === 'help') {
URI is a hyper://, ipfs://, or https?:// link to the peermaps dataset
-p --port - server http on this port
-q --quiet - do not log http requests to stdout
`.trim().replace(/^ {4}/gm,'') + '\n')
} else if (argv.version || argv._[0] === 'version') {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -23,6 +23,7 @@ usage: peermaps COMMAND ...
URI is a hyper://, ipfs://, or https?:// link to the peermaps dataset
-p --port - server http on this port
-q --quiet - do not log http requests to stdout
```

Expand Down

0 comments on commit c5ae428

Please sign in to comment.