mirror of
				https://github.com/rschamp/gh-pages.git
				synced 2025-11-04 12:51:11 +08:00 
			
		
		
		
	Better semantics
This commit is contained in:
		
							parent
							
								
									efa4546534
								
							
						
					
					
						commit
						e1a7b85735
					
				@ -21,8 +21,8 @@ program
 | 
			
		||||
      'commit message', 'Updates')
 | 
			
		||||
  .option('-t, --dotfiles', 'Include dotfiles')
 | 
			
		||||
  .option('-a, --add', 'Only add, and never remove existing files.')
 | 
			
		||||
  .option('-l, --only <pattern>',
 | 
			
		||||
      'Only remove files that match the given pattern ' +
 | 
			
		||||
  .option('-v, --remove <pattern>',
 | 
			
		||||
      'Remove files that match the given pattern ' +
 | 
			
		||||
      '(ignored if used together with --add).', '.')
 | 
			
		||||
  .option('-n, --no-push', 'Commit only (with no push)')
 | 
			
		||||
  .parse(process.argv);
 | 
			
		||||
@ -35,7 +35,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
 | 
			
		||||
  message: program.message,
 | 
			
		||||
  dotfiles: !!program.dotfiles,
 | 
			
		||||
  add: !!program.add,
 | 
			
		||||
  only: program.only,
 | 
			
		||||
  only: program.remove,
 | 
			
		||||
  remote: program.remote,
 | 
			
		||||
  push: !program.noPush,
 | 
			
		||||
  logger: function(message) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user