]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3422] Added keactrl usage.
authorMarcin Siodelski <marcin@isc.org>
Wed, 25 Jun 2014 08:45:13 +0000 (10:45 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 25 Jun 2014 08:45:13 +0000 (10:45 +0200)
src/bin/keactrl/keactrl.in

index a42e0e4a37ef1faa48a49098f397dfd176916649..78da18e6102425c4bf9a92d417df6b0526ecb86b 100644 (file)
@@ -58,6 +58,11 @@ is_in_list() {
     done
 }
 
+# Prints keactrl usage.
+usage() {
+    printf "%s" $( basename ${0} ) "[-c keactrl-config-file] [-s server[,server,..]]"
+}
+
 ### Functions managing Kea processes ###
 
 # Returns a list of existing PIDs and a number of PIDs for the process
@@ -209,6 +214,7 @@ do
             ;;
         *)
             log_error "invalid option: ${option}"
+            usage
             exit 1
     esac
     shift