From e13eb49bfcaf31e29a528577bfa4ea689508a17d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 2 Mar 2016 17:51:08 +0200
Subject: [PATCH] - Handle case when parameters are passed. - Remove task from
 TODO list.

---
 README.rst   | 5 -----
 bundle_certs | 6 ++++++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/README.rst b/README.rst
index 3b19d62..6a25974 100644
--- a/README.rst
+++ b/README.rst
@@ -63,8 +63,3 @@ Simply run:
 .. code:: shell
 
     make test
-
-TODO
-----
-
-- Detect when no parameters are passed and output a usage message.
diff --git a/bundle_certs b/bundle_certs
index 9d14d93..0c21a09 100755
--- a/bundle_certs
+++ b/bundle_certs
@@ -78,4 +78,10 @@ bundle_certs () {
     rm -r certs
 }
 
+
+if [ ! "$sourced" ] && [ $# -eq 0 ]
+then
+    echo "Usage: $0 filename [filename2 [filename3 ...]]" > /dev/stderr
+    exit 1
+fi
 [ ! "$sourced" ] && bundle_certs "$@"
-- 
GitLab