Skip to content

Commit

Permalink
show help on for no args
Browse files Browse the repository at this point in the history
  • Loading branch information
joehand committed May 4, 2017
1 parent f17a050 commit 2202508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ var argv = minimist(process.argv.slice(2), {
}
})

if (argv.help) return usage()

var src = argv._[0] || process.cwd()
var dest = argv._[1]
var logspeed = argv.logspeed || 400
var quiet = debug.enabled || !!process.env.DEBUG

if (!argv._.length || argv.help) return usage()


var neat = neatLog([view.main, view.progress], {
logspeed: logspeed,
Expand Down
16 changes: 1 addition & 15 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ npm install -g dat-next

## Usage

### Share files:

```
❯ dat-next my-data/
dat://22607c7238e0cd74faa239d4119f32f455bb5bd555987090b2696dd0b090db38
```

### Download files:

```
❯ dat-next my-data/
```

### Share a directory:

```
Expand All @@ -40,5 +26,5 @@ dat-next <dir> [options]

```
dat-next <key> <dir> [options]
--temp,-t keep sleep data in memory
--live keep running + update changes
```

0 comments on commit 2202508

Please sign in to comment.