Shorten options

This commit is contained in:
Milan Nikolic
2018-01-27 03:50:50 +01:00
parent 45ca5bdedb
commit cbc7d21b23
2 changed files with 4 additions and 4 deletions

View File

@@ -38,9 +38,9 @@ Usage of ./cam2ip:
Bind address (default ":56000")
-delay int
Delay between frames, in milliseconds (default 10)
-frame-height float
-height float
Frame height (default 480)
-frame-width float
-width float
Frame width (default 640)
-htpasswd-file string
Path to htpasswd file, if empty auth is disabled

View File

@@ -20,8 +20,8 @@ func main() {
flag.IntVar(&srv.Index, "index", 0, "Camera index")
flag.IntVar(&srv.Delay, "delay", 10, "Delay between frames, in milliseconds")
flag.Float64Var(&srv.FrameWidth, "frame-width", 640, "Camera frame width")
flag.Float64Var(&srv.FrameHeight, "frame-height", 480, "Camera frame height")
flag.Float64Var(&srv.FrameWidth, "width", 640, "Frame width")
flag.Float64Var(&srv.FrameHeight, "height", 480, "Frame height")
flag.BoolVar(&srv.NoWebGL, "nowebgl", false, "Disable WebGL drawing of images (html handler)")
flag.StringVar(&srv.Bind, "bind-addr", ":56000", "Bind address")
flag.StringVar(&srv.Htpasswd, "htpasswd-file", "", "Path to htpasswd file, if empty auth is disabled")