'use strict'
var meow = require('meow')
var hacktoberFest = require('./main.js')

const cli = meow({
  flags: {
    year: {
      type: 'number',
      alias: 'y',
      default: 0,
    },
    help: {
      type: 'boolean',
      alias: 'h',
    },
  },
})

if (cli.flags.help) {
  cli.showHelp(0)
}

hacktoberFest
  .getHacktoberfestStats(cli.input[0], cli.flags.year)
  .then((stats) => {
    console.log(stats)
  })
  .catch((error) => {
    console.error(error.message)
    process.exit(1)
  })

@@ -1,8 +1,29 @@
+#!/usr/bin/env node%0A%0A
 'use str

Fix errors related to missing shebang