From 00ef7f129b25abd87d5b2f9d9b8cf0a5d3bceb31 Mon Sep 17 00:00:00 2001 From: davisgoglin Date: Sat, 19 Mar 2016 20:03:16 -0700 Subject: [PATCH] Add raw option when using cli --- escpos/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/escpos/cli.py b/escpos/cli.py index 3681834..55823df 100755 --- a/escpos/cli.py +++ b/escpos/cli.py @@ -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')