text: #!/usr/bin/env node
  
  // Makes the script crash on unhandled rejections instead of silently
  // ignoring them. In the future, promise rejections that are not handled will
  // terminate the Node.js process with a non-zero exit code.
  process.on('unhandledRejection', err => {
  	handleError(`UNHANDLED ERROR`, err);
  });
  
  const cli = require('./utils/cli.js');
  const Museum = require('./data/museum.js');
  const Region = require('./data/region.js');
  
  const [input] = cli.input;
  
  const name = cli.flags.name;
  const province = cli.flags.province;
  const city = cli.flags.city;
  const district = cli.flags.district;
  const detail = cli.flags.detail;
  const code = cli.flags.code;
  
  (async () => {
  	input === 'help' && (await cli.showHelp(0));
  	
  	const data = input === 'data' ? true : false;
  	const region = input === 'region' ? true : false;
  	
  	Museum(data, name, province, city, district, detail);
  	Region(region, code);
  })();
  