[Roxygen-commits] r157 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Aug 5 10:39:43 CEST 2008


Author: pcd
Date: 2008-08-05 10:39:42 +0200 (Tue, 05 Aug 2008)
New Revision: 157

Modified:
   pkg/src/roxygen
Log:
usage on invalid input


Modified: pkg/src/roxygen
===================================================================
--- pkg/src/roxygen	2008-08-05 08:30:52 UTC (rev 156)
+++ pkg/src/roxygen	2008-08-05 08:39:42 UTC (rev 157)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+version="Roxygen 0.1"
+
 usage="Usage: R CMD roxygen PACKAGE
 
 A simple front-end for roxygenize()
@@ -10,6 +12,11 @@
 
 Report bugs to <roxygen-devel at lists.r-forge.r-project.org>."
 
+if [ ${#} -ne 1 ]; then
+    echo "${usage}"
+    exit 1
+fi
+
 case ${1} in
     -h|--help)
         echo "${usage}"; exit 0 ;;



More information about the Roxygen-commits mailing list