bazoFF/frontend-project-46

View on GitHub
bin/gendiff.js

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env node

import { Command } from 'commander';

const program = new Command();

program
    .version('1.0.0')
    .description('Compares two configuration files and shows a difference.')
    .option('-f, --format <type>', 'output usage information', 'stylish')
    .argument('<filepath1>', 'path to 1st file')
    .argument('<filepath2>', 'path to 2nd file')
    .action((filepath1, filepath2) => {
        const options = program.opts();
        console.log('SETUP SUCCESSFUL');
    });

program.parse(process.argv);