#!/usr/bin/env node
'use strict'

const join = require('path').join
const GitAddAndCommit = require(join(__dirname, '../src/git-add-and-commit'))

let options = {}
let args = process.argv.slice(2)

if (args.includes('-i') || args.includes('--interactive')) {
	options.interactive = true
}
if (args.includes('-h') || args.includes('--help')) {
	options.help = true
}

new GitAddAndCommit(options)

@@ -61,16 +61,53 @@
 ').join%0A
+const minimist = require('minimist')%0A
 const Gi
@@ -185,54 +185,175 @@
 let 
-options = %7B%7D%0Alet args = process.argv.slice(2)%0A
+args = Object.keys(minimist(process.argv.slice(2)))%0Alet options = %7B%0A%09caseInsensitive: true%0A%7D%0A%0Aif (args.includes('h') %7C%7C args.includes('help')) %7B%0A%09options.help = true%0A%7D
 %0Aif 
@@ -368,17 +368,16 @@
 cludes('
--
 i') %7C%7C a
@@ -390,18 +390,16 @@
 cludes('
---
 interact
@@ -456,18 +456,17 @@
 cludes('
--h
+c
 ') %7C%7C ar
@@ -482,14 +482,22 @@
 es('
---help
+case-sensitive
 ')) 
@@ -503,34 +503,46 @@
  %7B%0A%09options.
-help = tru
+caseInsensitive = fals
 e%0A%7D%0A%0Anew Git

Use minimist