1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00
codex.docs/bin/db-converter/program.js

15 lines
397 B
JavaScript
Raw Normal View History

import { Command } from 'commander';
const program = new Command();
program
.name('db-converter')
.description('Converts data from local database to MongoDB')
.option('--db-path <path>', 'Path to the local database', './db')
.option('--mongodb-uri <uri>', 'URI to the MongoDB database', 'mongodb://localhost:27017/docs')
.parse();
const options = program.opts();
export { options };