From 03ca0f77e6c3aa62b2cd66e68a968e3c1e6ebbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20K=C3=B6ritz?= Date: Tue, 15 Oct 2019 12:17:28 +0200 Subject: [PATCH] Fixes #4, add --version flag Also renamed the application in the help texts to "actioncam". --- actioncam.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actioncam.go b/actioncam.go index 0d5a98a..f1d3bff 100644 --- a/actioncam.go +++ b/actioncam.go @@ -40,8 +40,8 @@ func main() { var camera *libipcamera.Camera var rootCmd = &cobra.Command{ - Use: "ipcamera [Cameras IP Address]", - Short: "ipcamera is a tool to stream the video preview of cheap action cameras without the mobile application", + Use: "actioncam [Cameras IP Address]", + Short: "actioncam is a tool to stream the video preview of cheap action cameras without the mobile application", Args: cobra.MaximumNArgs(1), Run: func(cmd *cobra.Command, args []string) { defer camera.Disconnect() @@ -92,6 +92,7 @@ func main() { } } }, + Version: "0.2.2", } rootCmd.PersistentFlags().Int16VarP(&port, "port", "P", 6666, "Specify an alternative camera port to connect to")