mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Add raw option when using cli
This commit is contained in:
		
				
					committed by
					
						
						Davis Goglin
					
				
			
			
				
	
			
			
			
						parent
						
							8c186d912d
						
					
				
				
					commit
					00ef7f129b
				
			@@ -290,6 +290,14 @@ def main():
 | 
			
		||||
        required=True
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    parser_command_raw = command_subparsers.add_parser('raw', help='Raw text')
 | 
			
		||||
    parser_command_raw.set_defaults(func='_raw')
 | 
			
		||||
    parser_command_raw.add_argument(
 | 
			
		||||
        '--msg',
 | 
			
		||||
        help='Raw data to send',
 | 
			
		||||
        required=True
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    parser_command_demo = command_subparsers.add_parser('demo',
 | 
			
		||||
                                                        help='Demonstrates various functions')
 | 
			
		||||
    parser_command_demo.set_defaults(func='demo')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user