code: function _config(args) {
    var opts = {};
  
    if(args.removeExtraneous){
      opts.removeExtraneous = true;
    }
  
    if (args.bitbucketAuthUser || args.bitbucketAuthPass) {
      opts.bitbucket = {
        authUser: args.bitbucketAuthUser,
        authPass: args.bitbucketAuthPass
      };
  
    } else if (args.githubUser || args.githubOrg || args.githubAuthUser || args.githubAuthPass) {
      opts.github = {
        user    : args.githubUser,
        org     : args.githubOrg,
        authUser: args.githubAuthUser,
        authPass: args.githubAuthPass,
        useSsh : args.githubUseSsh
      };
  
    } else if (args.gitoriousUrl || args.gitoriousProject) {
      opts.gitorious = {
        url    : args.gitoriousUrl,
        project: args.gitoriousProject
      };
  
    } else if (args.local) {
      opts.local = {
        dir: process.cwd()
      };
    }
  
    new Repoman().config(opts, bag.exit);
  }
docs: Repoman CLI module.
  @module cli