Skip to content

Commit

Permalink
Shorten options
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Jan 27, 2018
1 parent 45ca5bd commit cbc7d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cam2ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cbc7d21

Please sign in to comment.