Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default download destination should be current directory #399

Merged
merged 2 commits into from Aug 12, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Default download destination should be current directory, fixes #390

  • Loading branch information
gillesdemey committed Aug 11, 2015
commit d3cc78996528f848b6bac288414a6df7d8d76db9
@@ -193,7 +193,7 @@ Options (streaming):
--stdout standard out (implies --quiet)
Options (simple):
-o, --out [path] set download destination [default: /tmp/webtorrent]
-o, --out [path] set download destination [default: current directory]
-s, --select select individual file in torrent (by index)
-i, --index [number] stream a particular file from torrent (by index)
-v, --version print the current version
@@ -254,6 +254,11 @@ function runCreate (input) {
var client, href, playerName, server, serving

function runDownload (torrentId) {

if (!argv.out && !playerName) {
argv.out = process.cwd()
}

client = new WebTorrent({
blocklist: argv.blocklist
})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.