code: def get_command(arguments, output=None):
      
      options = parse_options(arguments)
      key = options.pop("key")
      secret = options.pop("secret")
      endpoint = options.pop("endpoint")
      action = options.pop("action")
      return Command(key, secret, endpoint, action, options, output)
docs: Parse C{arguments} and configure a L{Command} instance.
  
      An access key, secret key, endpoint and action are required.  Additional
      parameters included with the request are passed as parameters to the
      method call.  For example, the following command will create a L{Command}
      object that can invoke the C{DescribeRegions} method with the optional
      C{RegionName.0} parameter included in the request::
  
        txaws-discover --key KEY --secret SECRET --endpoint URL \
                       --action DescribeRegions --RegionName.0 us-west-1
  
      @param arguments: The command-line arguments to parse.
      @raises OptionError: Raised if C{arguments} can't be used to create a
          L{Command} object.
      @return: A L{Command} instance configured to make an EC2 API method call.