From 86964ac730840d09379fcc5ae3f4098548df75bb Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 14 Oct 2010 12:39:41 +0200 Subject: [PATCH] Added --version option to oneauth command Gets the version and copyright string from CommandParse class so it only needs to be changed there --- src/authm_mad/oneauth | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/authm_mad/oneauth b/src/authm_mad/oneauth index 4aeafb1674..435c0aac38 100755 --- a/src/authm_mad/oneauth +++ b/src/authm_mad/oneauth @@ -38,6 +38,7 @@ require 'sequel' require 'quota' require 'ssh_auth' require 'client_utilities' +require 'command_parse' COMMANDS_HELP=<<-EOT @@ -129,6 +130,9 @@ when "help" print_help exit 0 +when "--version" + puts CommandParse::ONE_VERSION + else print_help exit -1