mirror of
				https://github.com/flynx/argv.js.git
				synced 2025-10-30 19:20:08 +00:00 
			
		
		
		
	tests...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									1112e8af94
								
							
						
					
					
						commit
						78d1e2a7be
					
				
							
								
								
									
										19
									
								
								test.js
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								test.js
									
									
									
									
									
								
							| @ -25,7 +25,6 @@ argv.Parser({ | |||||||
| 
 | 
 | ||||||
| 		'@help': '-help', | 		'@help': '-help', | ||||||
| 
 | 
 | ||||||
| 		//'-v': '-verbose',
 |  | ||||||
| 		'-verbose': function(){ | 		'-verbose': function(){ | ||||||
| 			console.log('>>> VERBOSE:', ...arguments) | 			console.log('>>> VERBOSE:', ...arguments) | ||||||
| 			return 'verbose' | 			return 'verbose' | ||||||
| @ -41,9 +40,6 @@ argv.Parser({ | |||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 
 | 
 | ||||||
| 		// XXX dead-end alias...
 |  | ||||||
| 		'-d': '-dead-end', |  | ||||||
| 
 |  | ||||||
| 		'@test': argv.Parser({ | 		'@test': argv.Parser({ | ||||||
| 		}), | 		}), | ||||||
| 
 | 
 | ||||||
| @ -54,6 +50,21 @@ argv.Parser({ | |||||||
| 				doc: 'nested nested parser.', | 				doc: 'nested nested parser.', | ||||||
| 			}), | 			}), | ||||||
| 		}), | 		}), | ||||||
|  | 
 | ||||||
|  | 		// these aliases will not get shown...
 | ||||||
|  | 
 | ||||||
|  | 		// dead-end alias...
 | ||||||
|  | 		'-d': '-dead-end', | ||||||
|  | 
 | ||||||
|  | 		// alias loops...
 | ||||||
|  | 		'-z': '-z', | ||||||
|  | 
 | ||||||
|  | 		'-x': '-y', | ||||||
|  | 		'-y': '-x', | ||||||
|  | 
 | ||||||
|  | 		'-a': '-b', | ||||||
|  | 		'-b': '-c', | ||||||
|  | 		'-c': '-a', | ||||||
| 	}) | 	}) | ||||||
| 	.then(function(){ | 	.then(function(){ | ||||||
| 		console.log('DONE') }) | 		console.log('DONE') }) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user