-
Notifications
You must be signed in to change notification settings - Fork 0
CommandLine
Dave Wilson edited this page Jan 27, 2015
·
1 revision
usage: gyroscope.py [-h] [-as int] [-at int] [-c str] [-gi bool] [-gp bool]
[-gscripts bool] [-gss bool] [-gsc bool] [-lf str]
[-ll int] [-ltb bool] [-lts bool] [-nc bool] [-nlf bool]
[-sf str]
optional arguments:
-h, --help show this help message and exit
-as int, --acceptablesize int
Threshold size in kilobytes before a warning is logged
stating that a page or asset is too big. Default 3.
-at int, --acceptabletime int
Threshold time in seconds before a warning is logged
stating that a page or asset was retrieved from the
web server too slowly. Default 100.
-c str, --configfile str
Path to configuration file. Default ./config.json.
-gi bool, --getimages bool
Whether to retrieve images. This argument is
overridden by pageconfig for individual sites. Default
True.
-gp bool, --getpages bool
Whether the pages configured for a site should be
retrieved. This argument is overridden by page config
for individual sites. Default True
-gscripts bool, --getscripts bool
Whether to retrieve external scripts. This argument is
overridden by page config for individual sites.
Default True
-gss bool, --getstylesheets bool
Whether to retrieve external stylesheets. This
argument is overridden by page config for individual
sites. Default True
-gsc bool, --givesecondchance bool
Whether a slowly-loading page or asset should be
requested a second time. The second response will then
be measured. This argument is overridden by page
config for individual sites. Default True
-lf str, --logfile str
Path to logfile. Default. ./gyroscope.log.
-ll int, --loglevel int
Logging level. The logger will output messages at the
same or higher severity than is set. 0 = No logging,
10 = Debug, 20 = Info, 30 = Warning, 40 = Error, 50 =
Critical. Default 20.
-ltb bool, --logtoobig bool
Whether log warnings should be output when a page or
asset is too big accordingto acceptablesize. This
argument is overridden by page config for individual
sites. Default True.
-lts bool, --logtooslow bool
Whether log warnings should be output when a page or
asset is too slow accordingto acceptabletime. This
argument is overridden by page config for individual
sites. Default True.
-nc bool, --noconfig bool
Whether to load a config file. If false then just
command-line args and defaultswill be used
-nlf bool, --nologfile bool
Whether a log file shouldn't be used. If true then log
will output to stdout.
-sf str, --sitesfile str
The location of the sites file. Default ./sites.json.