mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-05-03 03:12:34 +00:00
Shorten options
This commit is contained in:
@@ -38,9 +38,9 @@ Usage of ./cam2ip:
|
|||||||
Bind address (default ":56000")
|
Bind address (default ":56000")
|
||||||
-delay int
|
-delay int
|
||||||
Delay between frames, in milliseconds (default 10)
|
Delay between frames, in milliseconds (default 10)
|
||||||
-frame-height float
|
-height float
|
||||||
Frame height (default 480)
|
Frame height (default 480)
|
||||||
-frame-width float
|
-width float
|
||||||
Frame width (default 640)
|
Frame width (default 640)
|
||||||
-htpasswd-file string
|
-htpasswd-file string
|
||||||
Path to htpasswd file, if empty auth is disabled
|
Path to htpasswd file, if empty auth is disabled
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ func main() {
|
|||||||
|
|
||||||
flag.IntVar(&srv.Index, "index", 0, "Camera index")
|
flag.IntVar(&srv.Index, "index", 0, "Camera index")
|
||||||
flag.IntVar(&srv.Delay, "delay", 10, "Delay between frames, in milliseconds")
|
flag.IntVar(&srv.Delay, "delay", 10, "Delay between frames, in milliseconds")
|
||||||
flag.Float64Var(&srv.FrameWidth, "frame-width", 640, "Camera frame width")
|
flag.Float64Var(&srv.FrameWidth, "width", 640, "Frame width")
|
||||||
flag.Float64Var(&srv.FrameHeight, "frame-height", 480, "Camera frame height")
|
flag.Float64Var(&srv.FrameHeight, "height", 480, "Frame height")
|
||||||
flag.BoolVar(&srv.NoWebGL, "nowebgl", false, "Disable WebGL drawing of images (html handler)")
|
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.Bind, "bind-addr", ":56000", "Bind address")
|
||||||
flag.StringVar(&srv.Htpasswd, "htpasswd-file", "", "Path to htpasswd file, if empty auth is disabled")
|
flag.StringVar(&srv.Htpasswd, "htpasswd-file", "", "Path to htpasswd file, if empty auth is disabled")
|
||||||
|
|||||||
Reference in New Issue
Block a user