add version of simplewebs
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
import os,sys,time
|
||||
import urllib
|
||||
VERSION="20160116"
|
||||
|
||||
def setup():
|
||||
''' Setup the command line options '''
|
||||
@@ -20,6 +21,7 @@ def setup():
|
||||
help="Output filename (Default: index.html)")
|
||||
parser.add_argument("-p",action="store_false",dest="parent",default=True,
|
||||
help="Do no print .. link for parent folder.")
|
||||
parser.add_argument("--version",action='version', version=VERSION)
|
||||
parser.add_argument("startpath",type=str,action="store",default=os.path.abspath('.'),nargs='?',
|
||||
help="Root path of the index")
|
||||
options=parser.parse_args()
|
||||
@@ -69,6 +71,7 @@ def get_header(title):
|
||||
header='''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta name="generator" content="SimpleWebPage '''+VERSION+'''" />
|
||||
<title>Index of '''+title+'''</title>
|
||||
<style>
|
||||
body {
|
||||
|
||||
Reference in New Issue
Block a user