Add raw option when using cli

This commit is contained in:
davisgoglin 2016-03-19 20:03:16 -07:00 committed by Davis Goglin
parent 8c186d912d
commit 00ef7f129b
1 changed files with 8 additions and 0 deletions

View File

@ -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')