Skip to content
NNScripts edited this page Mar 28, 2013 · 2 revisions

All scripts are meant to run from the commandline.
Most scripts have a build in help which can be shown using the "-h" or "--help" parameter

Example:

php remove_blacklist_releases.php -h

Will produce the following help

Remove black or whitelisted releases - version 0.6

Usage: php remove_blacklist_releases.php [options] [operands]
Options:
  -f, --full              Check all releases (full database)
  -g, --group <arg>       Remove releases only from one group

  -d, --display           Enable output (settings default)
  -q, --quiet             Disable output

  -l, --limit <arg>       The limit in hours (default limit is 36 hours)
  -n, --nolimit           Disable the limit

  -r, --remove            Enable the removal of releases
  -k, --keep              Disable the removal of releases (settings default)

  --debug                 Enable debug mode

  -h, --help              Shows this help

Parameters and configuration

Scripts can be configured using the settings.ini file.
If a script has parameters (as shown in the example above), the settings can be overwritten with these parameters.

If for example the remove_blacklist_releases script does not remove data by default, you can force the script to remove data using the --remove option.

Example:

php remove_blacklist_releases.php --remove

Each parameter provided overwrites the default read from the configuration.

Clone this wiki locally