diff options
author | Aki <please@ignore.pl> | 2020-08-24 18:22:36 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-24 18:22:36 +0200 |
commit | 96b6d2a1cfccb060fadce11c50737000c7bf036c (patch) | |
tree | a484c2e7ca89322796976f3e9391b3c4c4d879a3 /plop.1 | |
parent | ef5e5e6691f02844499c57f16b0bb470a83aa92f (diff) | |
download | plop-96b6d2a1cfccb060fadce11c50737000c7bf036c.zip plop-96b6d2a1cfccb060fadce11c50737000c7bf036c.tar.gz plop-96b6d2a1cfccb060fadce11c50737000c7bf036c.tar.bz2 |
Added getopt to main
Diffstat (limited to 'plop.1')
-rw-r--r-- | plop.1 | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,15 +1,21 @@ -.TH plop 1 "2020-08-15" +.TH plop 1 "2020-08-24" .SH NAME -plop \- Hackable small standalone engine for Lua web applications +plop \- Small hackable standalone engine for Lua web applications .SH SYNOPSIS -.B plop -.IR port -.IR handler +.B plop [-p +.IR PORT ] +.IR HANDLER .SH DESCRIPTION .B plop loads -.IR handler -Lua script and starts a HTTP/1.1 server listening on a designated port. The script is loaded as if +.IR HADNLER +Lua script and starts a HTTP/1.1 server listening on a designated +.IR PORT . +If +.IR PORT +is not specified server starts listening on +.B 8080 +by default. The script is loaded as if .B require was used with module name .B handler |