diff --git a/badger-am.js b/badger-am.js
index 0bdc984..e94a93e 100755
--- a/badger-am.js
+++ b/badger-am.js
@@ -9,20 +9,21 @@ const recursive = require('recursive-readdir');
const app = require('./package.json');
const audio = require('./lib/audio');
const util = require('./lib/util');
+const cli = require('./lib/cli');
// generate timestamp
const start = process.hrtime();
-main();
+badger();
// "main"
-function main() {
- util.printLogo();
- parseCLI();
+function badger() {
+ cli.printLogo();
+ run();
}
-// process command line arguments
-function parseCLI() {
+// start from command lines
+function run() {
// general options
commander
.version(app.version)
@@ -38,70 +39,33 @@ function parseCLI() {
commander
.command('sort