Add description for --help

This commit is contained in:
Sebastian Pipping 2012-03-18 04:53:39 +01:00 committed by Sebastian Lohff
parent 8c9bc15677
commit 8c90e4142d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class ThreadedHTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer)
pass
def main():
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(description='Serve a single file via HTTP')
parser.add_argument('--version', action='version', version='%(prog)s ' + __version__)
parser.add_argument('filename', metavar='file/directory', type=str)
parser.add_argument('-p', '--port', type=int, default=8080, \