From: Ben Pfaff Date: Sat, 10 Mar 2012 00:22:12 +0000 (-0800) Subject: ovs-pki: Implement --version option. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3e565cee955b1f52f3adf69907774f4bd7fc802;p=openvswitch ovs-pki: Implement --version option. Reported-by: Gurucharan Shetty Signed-off-by: Ben Pfaff --- diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index 02552513..ac1de335 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks, Inc. +# Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -93,9 +93,14 @@ Options that apply to any command: -f, --force Continue even if file or directory already exists -l, --log=FILE Log openssl output to FILE (default: ovs-log.log) -h, --help Print this usage message. + -V, --version Display version information. EOF exit 0 ;; + -V|--version) + echo "ovs-pki (Open vSwitch) @VERSION@" + exit 0 + ;; --di*=*) pkidir=$optarg ;;