mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 19:33:59 +08:00
30 lines
712 B
JavaScript
Executable File
30 lines
712 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Setup the debug paramater.
|
|
*/
|
|
|
|
process.env.DEBUG = process.env.TALK_DEBUG;
|
|
|
|
/**
|
|
* Module dependencies.
|
|
*/
|
|
|
|
const program = require('commander');
|
|
const pkg = require('../package.json');
|
|
|
|
//==============================================================================
|
|
// Setting up the program command line arguments.
|
|
//==============================================================================
|
|
|
|
program
|
|
.version(pkg.version)
|
|
.command('settings', 'work with the application settings')
|
|
.command('users', 'work with the application auth')
|
|
.parse(process.argv);
|
|
|
|
// If there is no command listed, output help.
|
|
if (!process.argv.slice(2).length) {
|
|
program.outputHelp();
|
|
}
|