Command Line Interface

Usage

py-opredflag CLI

usage: oprf [-h] {update} ...

Sub-commands

update

A script which automatically updates OPRF standard asset files from the OpRedFlag repository

oprf update [-h] [-d DIRECTORY] [-r REPOSITORY] [-b BRANCH] [-v VERSION_JSON]
            [-i INCLUDE] [-e EXCLUDE] [-c {major,minor,patch,none}] [-s]
            [-u UPDATE_TIMESTAMP_AFTER]
Named Arguments
-d, --directory

Local root directory

Default: '.'

-r, --repository

Location of OpRedFlag asset GitHub repository, in User/Repo format. Default: “Op-RedFlag/OpRedFlag”

Default: 'Op-Redflag/OpRedFlag'

-b, --branch

The branch of the OpRedFlag repository to use. Default: “master”

Default: 'master'

-v, --version-json

Location of local versions.json file. Default: “oprf-versions.json”

Default: 'oprf-versions.json'

-i, --include

Files to update, separated by commas. Default: “*”

Default: '*'

-e, --exclude

Files to skip, separated by commas. Default: “”

Default: ''

-c, --compatibility

Possible choices: major, minor, patch, none

Compatibility level, will only allow updates of this level or lower. Default: “minor”

Default: minor

-s, --strict

Fail if local file versions are newer than remote

Default: False

-u, --update-timestamp-after

Update the timestamp in the version file if this many days has passed. 0 for always and -1 for never. Default: 30

Default: 30