|  | @@ -312,18 +312,27 @@ def start():
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @click.group()
 | 
	
		
			
				|  |  | -@click.option('--debug/--no-debug', default=False)
 | 
	
		
			
				|  |  | -def cli(debug):
 | 
	
		
			
				|  |  | +def cli():
 | 
	
		
			
				|  |  |      pass
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -@cli.command()
 | 
	
		
			
				|  |  | -def web():
 | 
	
		
			
				|  |  | -    app.run(host='0.0.0.0', debug=True)
 | 
	
		
			
				|  |  | +@cli.command('web', short_help='start the web service')
 | 
	
		
			
				|  |  | +@click.option('--port','-p', default=8080)
 | 
	
		
			
				|  |  | +@click.option('--debug', default=False, is_flag=True)
 | 
	
		
			
				|  |  | +def web(port, debug):
 | 
	
		
			
				|  |  | +    click.echo("DEBUG: %s" % debug)
 | 
	
		
			
				|  |  | +    app.run(host='0.0.0.0',port=port, debug=debug)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -@cli.command()
 | 
	
		
			
				|  |  | -def worker():
 | 
	
		
			
				|  |  | +@cli.command(context_settings=dict(
 | 
	
		
			
				|  |  | +             ignore_unknown_options=True,
 | 
	
		
			
				|  |  | +             allow_extra_args=True))
 | 
	
		
			
				|  |  | +@click.argument('worker_args', nargs=-1, type=click.UNPROCESSED)
 | 
	
		
			
				|  |  | +def worker(worker_args):
 | 
	
		
			
				|  |  | +    from huey.bin.huey_consumer import get_option_parser
 | 
	
		
			
				|  |  | +    parser = get_option_parser()
 | 
	
		
			
				|  |  | +    options, args = parser.parse_args(list(worker_args))
 | 
	
		
			
				|  |  | +    print options, args
 | 
	
		
			
				|  |  |      click.echo('will start the consumer...')
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |