import { Command } from 'commander' import subNamespaceCreate from '../../infrastructure/namespace/subNamespaceCreate' const program = new Command() program .name('create-sub') .description('Create Sub Namespace and Announce Mosaic Transaction') .option('-o, --owner ', 'Specify the input of from Account', 'other') .option('-u, --url ', 'Specify the input of mijin URL') .option('-n, --name ', 'Specify the input of Namespace Name') .option('-pn, --parent-name ', 'Specify the input of Namespace Parent Name') .option('-r, --readfile ', 'Specify the input of Read Config File') .option('-p, --privatekey ', 'Specify the input of Mosaic Owner Account Private Key') .option('-b, --bod', 'Specify the input of mijin BOD mode(use Cookie)', false) .action(subNamespaceCreate) export default program