]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Only display the version when it is asked for.
authorAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Sat, 17 Nov 2007 21:43:19 +0000 (10:43 +1300)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Sat, 17 Nov 2007 21:43:19 +0000 (10:43 +1300)
bin/mythtv-status

index f88dc554d43df991df8383ec1ad9519d56c29c18..bf2a0cff878767aa58b01895194417b600d9218a 100755 (executable)
@@ -29,7 +29,7 @@ GetOptions(
   'e|episode'    => \$episode,
   'h|host=s'     => \$host,
   'p|port=s'     => \$port,
-  'v|version'    => &print_version(),
+  'v|version'    => \&print_version,
 );
 
 die "Sorry, port isn't a number.\n"