MCPcopy Create free account
hub / github.com/arvidn/libtorrent / print_usage

Function print_usage

examples/client_test.cpp:1350–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1348}
1349
1350void print_usage()
1351{
1352 std::fprintf(stderr, R"(usage: client_test [OPTIONS] [TORRENT|MAGNETURL]
1353OPTIONS:
1354
1355CLIENT OPTIONS
1356 -h print this message
1357 -f <log file> logs all events to the given file
1358 -s <path> sets the save path for downloads. This also determines
1359 the resume data save directory. Torrents from the resume
1360 directory are automatically added to the session on
1361 startup.
1362 -m <path> sets the .torrent monitor directory. torrent files
1363 dropped in the directory are added the session and the
1364 resume data directory, and removed from the monitor dir.
1365 -t <seconds> sets the scan interval of the monitor dir
1366 -F <milliseconds> sets the UI refresh rate. This is the number of
1367 milliseconds between screen refreshes.
1368 -k enable high performance settings. This overwrites any other
1369 previous command line options, so be sure to specify this first
1370 -G Add torrents in seed-mode (i.e. assume all pieces
1371 are present and check hashes on-demand)
1372 -e <loops> exit client after the specified number of iterations
1373 through the main loop
1374 -O <log file> print session stats counters to the specified log file
1375 -1 exit on first torrent completing (useful for benchmarks))"
1376#ifdef TORRENT_UTP_LOG_ENABLE
1377R"(
1378 -q Enable uTP transport-level verbose logging
1379)"
1380#endif
1381R"(
1382LIBTORRENT SETTINGS
1383 --<name-of-setting>=<value>
1384 set the libtorrent setting <name> to <value>
1385 --list-settings print all libtorrent settings and exit
1386
1387BITTORRENT OPTIONS
1388 -T <limit> sets the max number of connections per torrent
1389 -U <rate> sets per-torrent upload rate
1390 -D <rate> sets per-torrent download rate
1391 -Q enables share mode. Share mode attempts to maximize
1392 share ratio rather than downloading
1393 -r <IP:port> connect to specified peer
1394
1395NETWORK OPTIONS
1396 -x <file> loads an emule IP-filter file
1397 -Y Rate limit local peers
1398)"
1399#if TORRENT_USE_I2P
1400R"( -i <i2p-host> the hostname to an I2P SAM bridge to use
1401)"
1402#endif
1403R"(
1404DISK OPTIONS
1405 -a <mode> sets the allocation mode. [sparse|allocate]
1406 -0 disable disk I/O, read garbage and don't flush to disk
1407

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected