[ovs-dev] [PATCH] ovs-pki: Implement --version option.
Gurucharan Shetty
gshetty at nicira.com
Sat Mar 10 02:09:39 UTC 2012
On Fri, Mar 9, 2012 at 4:22 PM, Ben Pfaff <blp at nicira.com> wrote:
> Reported-by: Gurucharan Shetty <gshetty at nicira.com>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
> utilities/ovs-pki.in | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in
> index 0255251..ac1de33 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
> ;;
> --
> 1.7.2.5
>
Looks good to me.
More information about the dev
mailing list