dat icon indicating copy to clipboard operation
dat copied to clipboard

--ignore not documented in share --help

Open anarcat opened this issue 5 years ago • 1 comments

Bug Report

Please give us details about your installation to assist you. Run dat -v to see the version of Dat you are using.

  • Operating system: Debian buster
  • Node Version: v8.11.2
  • Dat Version: 13.11.4

Expected behavior

While reading about automated file backups, I stumbled upon a secret commandline flag:

 dat share /Users/max/Desktop --ignore='!**/Screen Shot*.png' --ignore='**/**'

I somehow expected this to show up in the help! but...

Actual behavior

$ dat share -h 
Create and share a dat
Create a dat, import files, and share to the network.

Usage: dat share
    --dir, -d             set the directory for Dat
    --port                port to use for connections (default port: 3282 or first available)
    --utp                 use utp for discovery (default: true)
    --http                serve dat over http (default port: 8080)
    --sparse              download only requested data (default: false)
    --up                  throttle upload bandwidth (1024, 1kb, 2mb, etc.)
    --down                throttle download bandwidth (1024, 1kb, 2mb, etc.)
    --import              Import files from the directory to the database. (default: true)
    --watch               Watch for changes and import updated files. (default: true)

It is also not in dat -h.

anarcat avatar Aug 24 '18 13:08 anarcat

Can you make a PR for this?

okdistribute avatar Mar 27 '20 02:03 okdistribute