def qsub_arg(key, value)
        case key
        # common attributes
        when :Execution_Time
          ['-a', value.to_s]
        when :Checkpoint
          ['-c', value.to_s]
        when :Error_Path
          ['-e', value.to_s]
        when :fault_tolerant
          ['-f']
        when :Hold_Types
          ['-h']
        when :Join_Path
          ['-j', value.to_s]
        when :Keep_Files
          ['-k', value.to_s]
        when :Mail_Points
          ['-m', value.to_s]
        when :Output_Path
          ['-o', value.to_s]
        when :Priority
          ['-p', value.to_s]
        when :Rerunable
          ['-r', value.to_s]
        when :job_array_request
          ['-t', value.to_s]
        when :User_List
          ['-u', value.to_s]
        when :Account_Name
          ['-A', value.to_s]
        when :Mail_Users
          ['-M', value.to_s]
        when :Job_Name
          ['-N', value.to_s]
        when :Shell_Path_List
          ['-S', value.to_s]
        # uncommon attributes
        when :job_arguments
          ['-F', value.to_s]
        when :init_work_dir
          ['-d', value.to_s] # sets PBS_O_INITDIR
        when :reservation_id
          ['-W', "x=advres:#{value}"] # use resource manager extensions for Moab
        # everything else
        else
          ['-W', "#{key}=#{value}"]
        end
      end
def qsub_arg(key, value)
        case key
        # common attributes
        when :Execution_Time
          ['-a', value.to_s]
        when :Checkpoint
          ['-c', value.to_s]
        when :Error_Path
          ['-e', value.to_s]
        when :fault_tolerant
          ['-f']
        when :Hold_Types
          ['-h']
        when :Join_Path
          ['-j', value.to_s]
        when :Keep_Files
          ['-k', value.to_s]
        when :Mail_Points
          ['-m', value.to_s]
        when :Output_Path
          ['-o', value.to_s]
        when :Priority
          ['-p', value.to_s]
        when :Rerunable
          ['-r', value.to_s]
        when :job_array_request
          ['-t', value.to_s]
        when :User_List
          ['-u', value.to_s]
        when :Account_Name
          ['-A', value.to_s]
        when :Mail_Users
          ['-M', value.to_s]
        when :Job_Name
          ['-N', value.to_s]
        when :Shell_Path_List
          ['-S', value.to_s]
        # uncommon attributes
        when :job_arguments
          ['-F', value.to_s]
        when :init_work_dir
          ['-d', value.to_s] # sets PBS_O_INITDIR
        when :reservation_id
          ['-W', "x=advres:#{value}"] # use resource manager extensions for Moab
        # everything else
        else
          ['-W', "#{key}=#{value}"]
        end
      end
Mapping of Torque attribute to `qsub` arguments