From cbc7d21b237bb8c049b85f9431cabfdbffb6b776 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Sat, 27 Jan 2018 03:50:50 +0100 Subject: [PATCH] Shorten options --- README.md | 4 ++-- cam2ip.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cd862a8..3c3e1d0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cam2ip.go b/cam2ip.go index 84d8ce1..4c24a4b 100644 --- a/cam2ip.go +++ b/cam2ip.go @@ -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")