drop shim for errant discovery doc
authorTom Clegg <tom@clinicalfuture.com>
Fri, 24 May 2013 10:03:13 +0000 (03:03 -0700)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 24 May 2013 10:07:40 +0000 (03:07 -0700)
sdk/cli/wh

index e22c9ab3a3c77c1cb95eb163e0139fcd2ea5e782..f06513054467e1fdf26a32ebe84df883c619a874 100755 (executable)
@@ -85,11 +85,10 @@ def parse_arguments(discovery_document)
   
   # get the subcommand
   cmd = ARGV.shift
-  cmd = cmd.pluralize unless cmd.nil?
   if sub_commands.include?(cmd) and cmd != '--help' then
     # subcommand exists
     # Now see if the method supplied exists
-    method = ARGV.shift 
+    method = ARGV.shift
     if discovery_document["resources"][cmd]["methods"].include?(method) then
       # method exists. Collect arguments.
       discovered_params = discovery_document["resources"][cmd]["methods"][method]["parameters"]