#!/usr/bin/env node
'use strict';var flags=require('flags');var templates=require('./ng-templates-bundle');flags.usageInfo = 'Usage:\n  ng-templates-bundle [options] <path> [path] ...';flags.defineString('moduleName','templates','The name of the module to contain template cache');flags.defineString('paths',['*.html'],'Paths to HTML files');flags.defineBoolean('standalone',false,'Whether the module being used is standalone');flags.defineString('filenamePrefix','','A prefix to apply to filenames');flags.parse();if(process.argv.length < 3){flags.help();}else {var nameFn=flags.get('filenamePrefix')?function(n){return '' + flags.get('filenamePrefix') + n;}:function(n){return n;};templates(flags.get('paths'),{moduleName:flags.get('moduleName'),standalone:flags.get('standalone'),name:nameFn}).then(function(files){console.log(files);});}