Skip to content

Commit

Permalink
add help document for install script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexazhou committed Apr 8, 2016
1 parent 10c3053 commit e5670d7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# @Disc : install VeryNginx

import os
import sys
import getopt

openresty_pkg_url = 'https://openresty.org/download/openresty-1.9.7.3.tar.gz'
openresty_pkg = 'openresty-1.9.7.3.tar.gz'
Expand Down Expand Up @@ -49,6 +51,19 @@ def main():


if __name__ == '__main__':
help_doc = 'usage: install.py <cmd> ... \n\
install\n\
all : install verynginx and openresty\n\
openresty : install openresty\n\
verynginx : install verynginx\n\
update\n\
verynginx : update the installed verynginx\n\
'

opts, args = getopt.getopt(sys.argv[1:], '', [])

print( help_doc )

main()

else:
Expand Down

0 comments on commit e5670d7

Please sign in to comment.