improved readme
This commit is contained in:
		
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@@ -6,12 +6,24 @@ nodejs wrapper for CLI related tasks
 | 
			
		||||
[](https://travis-ci.org/pushrocks/smartcli)
 | 
			
		||||
[](https://david-dm.org/pushrocks/smartcli#info=devDependencies)
 | 
			
		||||
 | 
			
		||||
### Install the package
 | 
			
		||||
    npm install smartcli
 | 
			
		||||
 | 
			
		||||
### Usage
 | 
			
		||||
```js
 | 
			
		||||
var smartcli = require("smartcli");
 | 
			
		||||
 | 
			
		||||
//returns true for terminal command "node yourjs.js jazz"
 | 
			
		||||
//returns true for terminal command "node myjs.js jazz"
 | 
			
		||||
smartcli.checkCommand('jazz'); 
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* returns an object for terminal command "node myjs.js --myoption something like so
 | 
			
		||||
* {
 | 
			
		||||
*   name: 'myoption',
 | 
			
		||||
*   specified: true,
 | 
			
		||||
*   value: 'something'
 | 
			
		||||
* }
 | 
			
		||||
*/
 | 
			
		||||
smartcli.getOption('myoption');
 | 
			
		||||
``
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user