diff --git a/README.md b/README.md index 829cd0e..ba42f3f 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ ```txt Simple P2P file distribution CLI. For example: -p2pfile serve ... -p2pfile download ... +p2pfile serve +p2pfile download Usage: p2pfile [command] @@ -38,19 +38,16 @@ Available Commands: download Download file from magnet uri. help Help about any command serve creates and seeds a torrent from filepaths. + version Print the version Flags: - --config string config file (default is $HOME/.p2pfile.yaml) - --ip string Set ip. (default: default route ip) - --port int Set port. (default: random port in port-range, See --port-range) - --port-range string Set random port range. (default: 42070-42099) (default "42070-42099") - --peers strings Set bootstrap peers. (default: empty) (eg: --peers 10.1.1.1:2233,10.2.2.2:4567 - --upload-limit float Set upload limit, MiB. (default: 0.0) - --download-limit float Set download limit, MiB. (default: 0.0) - --debug Debug mode. - -h, --help help for p2pfile - -Use "p2pfile [command] --help" for more information about a command. + --config string config file (default is $HOME/.p2pfile.yaml) + --tracker-ip string Set tracker ip. (default: default route ip) + --tracker-port int Set tracker port. (default: random port in port-range, See --port-range) + --tracker-port-range string Set tracker random port range. (default: 42070-42099) (default "42070-42099") + --dir string Set download dir. (default: .) + --debug Debug mode. + -h, --help help for p2pfile ``` ## 其他设计 @@ -82,7 +79,6 @@ D. 任务中断恢复: 2. tracker ha 3. multi file 4. download and upload speed limit -5. support set download directory ## 参考资料 diff --git a/README.md.resume b/README.md.resume deleted file mode 100644 index 8fe46f9..0000000 Binary files a/README.md.resume and /dev/null differ diff --git a/README.md.torrent b/README.md.torrent deleted file mode 100644 index a9ce13e..0000000 --- a/README.md.torrent +++ /dev/null @@ -1 +0,0 @@ -d8:announce36:http://172.20.64.10:42070/1/announce13:creation datei1643352047e4:infod6:lengthi2963e4:name9:README.md12:piece lengthi32768e6:pieces20:_mfo3v {gL7:privatei0eee \ No newline at end of file