import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-subjects", nargs="*", dest="subjects",
                    help=("list of subject ids, name of file in lyman "
                          "directory, or full path to text file with "
                          "subject ids"))
parser.add_argument("-plugin", default="multiproc",
                    choices=["linear", "multiproc",
                             "ipython", "torque", "sge"],
                    help="worklow execution plugin")
parser.add_argument("-nprocs", default=4, type=int,
                    help="number of MultiProc processes to use")
parser.add_argument("-queue", help="which queue for PBS/SGE execution")
parser.add_argument("-dontrun", action="store_true",
                    help="don't actually execute the workflows")

import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-subjects", nargs="*", dest="subjects",
                    help=("list of subject ids, name of file in lyman "
                          "directory, or full path to text file with "
                          "subject ids"))
parser.add_argument("-plugin", default="multiproc",
                    choices=["linear", "multiproc", "ipython",
                             "torque", "sge", "slurm"],
                    help="worklow execution plugin")
parser.add_argument("-nprocs", default=4, type=int,
                    help="number of MultiProc processes to use")
parser.add_argument("-queue", help="which queue for PBS/SGE execution")
parser.add_argument("-dontrun", action="store_true",
                    help="don't actually execute the workflows")

Add slurm to command line plugin choices
Add slurm to command line plugin choices

  import argparse
  
  parser = argparse.ArgumentParser()
  
  parser.add_argument("-subjects", nargs="*", dest="subjects",
                      help=("list of subject ids, name of file in lyman "
                            "directory, or full path to text file with "
                            "subject ids"))
  parser.add_argument("-plugin", default="multiproc",
-                     choices=["linear", "multiproc",
+                     choices=["linear", "multiproc", "ipython",
-                              "ipython", "torque", "sge"],
+                              "torque", "sge", "slurm"],
                      help="worklow execution plugin")
  parser.add_argument("-nprocs", default=4, type=int,
                      help="number of MultiProc processes to use")
  parser.add_argument("-queue", help="which queue for PBS/SGE execution")
  parser.add_argument("-dontrun", action="store_true",
                      help="don't actually execute the workflows")
  
Add slurm to command line plugin choices
## Code Before:
import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-subjects", nargs="*", dest="subjects",
                    help=("list of subject ids, name of file in lyman "
                          "directory, or full path to text file with "
                          "subject ids"))
parser.add_argument("-plugin", default="multiproc",
                    choices=["linear", "multiproc",
                             "ipython", "torque", "sge"],
                    help="worklow execution plugin")
parser.add_argument("-nprocs", default=4, type=int,
                    help="number of MultiProc processes to use")
parser.add_argument("-queue", help="which queue for PBS/SGE execution")
parser.add_argument("-dontrun", action="store_true",
                    help="don't actually execute the workflows")

## Instruction:
Add slurm to command line plugin choices
## Code After:
import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-subjects", nargs="*", dest="subjects",
                    help=("list of subject ids, name of file in lyman "
                          "directory, or full path to text file with "
                          "subject ids"))
parser.add_argument("-plugin", default="multiproc",
                    choices=["linear", "multiproc", "ipython",
                             "torque", "sge", "slurm"],
                    help="worklow execution plugin")
parser.add_argument("-nprocs", default=4, type=int,
                    help="number of MultiProc processes to use")
parser.add_argument("-queue", help="which queue for PBS/SGE execution")
parser.add_argument("-dontrun", action="store_true",
                    help="don't actually execute the workflows")
