I just wanted a binary to replace this bash alias:
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
$ ./webshare -h
Usage of ./webshare:
-d string
Directory to share (default ".")
-p int
Port to bind to (default 8000)