Update README with new commands/flags

This commit is contained in:
derrod 2020-04-30 12:07:53 +02:00
parent 39bfb47d75
commit 4ef55c02f3

View file

@ -101,9 +101,9 @@ $ legendary launch Anemone
## Usage ## Usage
```` ````
usage: legendary [-h] [-v] [-y] [-V] {auth,download,uninstall,launch,list-games,list-installed} ... usage: legendary [-h] [-v] [-y] [-V] {auth,download,uninstall,launch,list-games,list-installed,list-files} ...
Legendary v0.0.X - "Witty Name" Legendary v0.0.X - "Codename"
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
@ -112,13 +112,14 @@ optional arguments:
-V Print version and exit -V Print version and exit
Commands: Commands:
{auth,download,uninstall,launch,list-games,list-installed} {auth,download,uninstall,launch,list-games,list-installed,list-files}
auth Authenticate with EPIC auth Authenticate with EPIC
download Download a game download Download a game
uninstall Uninstall (delete) a game uninstall Uninstall (delete) a game
launch Launch a game launch Launch a game
list-games List available (installable) games list-games List available (installable) games
list-installed List installed games list-installed List installed games
list-files List files in manifest
Individual command help: Individual command help:
@ -139,20 +140,33 @@ positional arguments:
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--base-path <path> Path for game installations (defaults to ~/legendary) --base-path <path> Path for game installations (defaults to ~/legendary)
--game-folder <path> Folder for game installation (defaults to folder in metadata) --game-folder <path> Folder for game installation (defaults to folder in
metadata)
--max-shared-memory <size> --max-shared-memory <size>
Maximum amount of shared memory to use (in MiB), default: 1 GiB Maximum amount of shared memory to use (in MiB),
--max-workers <num> Maximum amount of download workers, default: 2 * logical CPU default: 1 GiB
--manifest <uri> Manifest URL or path to use instead of the CDN one (e.g. for downgrading) --max-workers <num> Maximum amount of download workers, default: 2 *
--old-manifest <uri> Manifest URL or path to use as the old one (e.g. for testing patching) logical CPU
--base-url <url> Base URL to download from (e.g. to test or switch to a different CDNs) --manifest <uri> Manifest URL or path to use instead of the CDN one
(e.g. for downgrading)
--old-manifest <uri> Manifest URL or path to use as the old one (e.g. for
testing patching)
--base-url <url> Base URL to download from (e.g. to test or switch to a
different CDNs)
--force Ignore existing files (overwrite) --force Ignore existing files (overwrite)
--disable-patching Do not attempt to patch existing installations (download entire changed file) --disable-patching Do not attempt to patch existing installations
--download-only Do not mark game as intalled and do not run prereq installers after download (download entire changed file)
--update-only Abort if game is not already installed (for automation) --download-only Do not mark game as intalled and do not run prereq
--dlm-debug Set download manager and worker processes' loglevel to debug installers after download
--update-only Abort if game is not already installed (for
automation)
--dlm-debug Set download manager and worker processes' loglevel to
debug
--platform <Platform> --platform <Platform>
Platform override for download (disables install) Platform override for download (disables install)
--prefix-filter <prefix>
Only fetch files whose path starts with <prefix> (case
insensitive)
Command: uninstall Command: uninstall
@ -175,29 +189,56 @@ positional arguments:
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--offline Skip login and launch game without online authentication --offline Skip login and launch game without online
authentication
--skip-version-check Skip version check when launching game in online mode --skip-version-check Skip version check when launching game in online mode
--override-username <username> --override-username <username>
Override username used when launching the game (only works with some titles) Override username used when launching the game (only
--dry-run Print the command line that would have been used to launch the game and exit works with some titles)
--dry-run Print the command line that would have been used to
launch the game and exit
Command: list-games Command: list-games
usage: legendary list-games [-h] [--platform <Platform>] [--include-ue] usage: legendary list-games [-h] [--platform <Platform>] [--include-ue] [--csv]
[--tsv]
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--platform <Platform> --platform <Platform>
Override platform that games are shown for Override platform that games are shown for
--include-ue Also include Unreal Engine content in list --include-ue Also include Unreal Engine content in list
--csv List games in CSV format
--tsv List games in TSV format
Command: list-installed Command: list-installed
usage: legendary list-installed [-h] [--check-updates] usage: legendary list-installed [-h] [--check-updates] [--csv] [--tsv]
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--check-updates Check for updates when listing installed games --check-updates Check for updates when listing installed games
--csv List games in CSV format
--tsv List games in TSV format
Command: list-files
usage: legendary list-files [-h] [--force-download] [--platform <Platform>]
[--manifest <uri>] [--csv] [--hashlist]
<App Name>
positional arguments:
<App Name> Name of the app
optional arguments:
-h, --help show this help message and exit
--force-download Always download instead of using on-disk manifest
--platform <Platform>
Platform override for download (disables install)
--manifest <uri> Manifest URL or path to use instead of the CDN one
--csv Output in CSV format
--hashlist Output file hash list in hashcheck/sha1sum compatible
format
```` ````