/usr/share/pyshared/livereload/cli.py is in python-livereload 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/env python
from docopt import docopt
from .server import start
cmd = """Python LiveReload
Usage:
livereload [-p <port>|--port=<port>] [-b|--browser] [<directory>]
Options:
-h --help show this screen
-p <port> --port=<port> specify a server port, default is 35729
-b --browser open browser when start server
"""
def main():
args = docopt(cmd)
port = args.get('--port')
root = args.get('<directory>')
autoraise = args.get('--browser')
if port:
port = int(port)
else:
port = 35729
start(port, root, autoraise)
|