function handleArgFlags(env) {
  // Make sure that we're not overwriting `help`, `init,` or `version` args in generators
  if (argv._.length === 0) {
    // handle request for usage and options
    if (argv.help || argv.h) {
      out.displayHelpScreen();
      process.exit(0);
    }

    // handle request for initializing a new plopfile
    if (argv.init || argv.i || argv[`init-ts`]) {
      const force = argv.force === true || argv.f === true || false;
      try {
        out.createInitPlopfile(force, !!argv[`init-ts`]);
        process.exit(0);
      } catch (err) {
        console.error(chalk.red("[PLOP] ") + err.message);
        process.exit(1);
      }
    }

    // handle request for version number
    if (argv.version || argv.v) {
      const localVersion = env.modulePackage.version;
      if (localVersion !== globalPkg.version && localVersion != null) {
        console.log(chalk.yellow("CLI version"), globalPkg.version);
        console.log(chalk.yellow("Local version"), localVersion);
      } else {
        console.log(globalPkg.version);
      }
      process.exit(0);
    }
  }

  // abort if there's no plopfile found
  if (env.configPath == null) {
    console.error(chalk.red("[PLOP] ") + "No plopfile found");
    out.displayHelpScreen();
    process.exit(1);
  }
}
Handles all basic argument flags
@param env - Values parsed by Liftoff