import minimist from 'minimist'
import push from './push'
import label from './label'

function help () {
  const help = `
      Usage
        $ wtr <action>

      Options
        -s, --sprint  Sprint number
        -c, --cohort  Team name (also org and repo name)
        -a, --assign  Specify individual assignee
        -b, --branch  Specify source branch

      Examples
        $ wtr push -s 1 -c kauri-2016
        $ wtr push -s 9 -c kotare-2015
        $ wtr push --sprint 4 kereru-2016
        $ wtr push -s 8 --cohort nikau-2016
        $ wtr push -s 1.1 -c tieke-2016
        $ wtr push -s 3 -c nikau-2016 -a richchurcher
        $ wtr push -s 5 -c kotare-2016 -b alternate-curriculum
        $ wtr label kahikatea-2016
  `
  console.log(help)
}

function waffle () {
  const argv = minimist(process.argv, {
    alias: {
      a: 'assign',
      b: 'branch',
      c: 'cohort',
      s: 'sprint'

    },
    string: [
      'action',
      'assign',
      'branch',
      'cohort',
      'sprint'
    ]
  })

  const action = argv._[2]
  switch (action) {
    case 'push':
      push(argv)
      break

    case 'label':
      label(argv)
      break

    default:
      help()
  }
}

export default waffle

@@ -179,34 +179,125 @@
    -
-s
+a
 , --
-sprint  Sprint number
+assign  Specify individual assignee(s) (can be comma-separated list)%0A        -b, --branch  Specify source branch
 %0A   
@@ -355,35 +355,35 @@
 e)%0A        -
-a
+e
 , --
-assign
+except
   Specify in
@@ -390,25 +390,61 @@
 dividual
- assignee
+s NOT to assign (can be comma-separated list)
 %0A       
@@ -449,42 +449,34 @@
    -
-b
+s
 , --
-branch  Specify source branch
+sprint  Sprint number
 %0A%0A  
@@ -808,16 +808,68 @@
 riculum%0A
+        $ wtr push -s 2 -c roa-2015 -e richchurcher%0A
         
@@ -1049,24 +1049,43 @@
 : 'cohort',%0A
+      e: 'except',%0A
       s: 'sp
@@ -1172,24 +1172,40 @@
   'cohort',%0A
+      'except',%0A
       'sprin

Add -e --except