From 0f0d5a6138b6a3edac20b150da318d5f637e4152 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Fri, 27 Jan 2012 19:51:16 -0700 Subject: [PATCH] Streaming script argparse bugfix. --- script/stream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/stream.py b/script/stream.py index 17cded3..5b82c94 100755 --- a/script/stream.py +++ b/script/stream.py @@ -24,10 +24,10 @@ import argparse RX_BUFFER_SIZE = 128 # Define command line argument interface -parser = argparse.ArgumentParser(description='Stream g-code file to grbl. (pySerial library required)') -parser.add_argument('gcode', type=argparse.FileType('r'), +parser = argparse.ArgumentParser(description='Stream g-code file to grbl. (pySerial and argparse libraries required)') +parser.add_argument('gcode_file', type=argparse.FileType('r'), help='g-code filename to be streamed') -parser.add_argument('device', +parser.add_argument('device_file', help='serial device path') parser.add_argument('-q','--quiet',action='store_true', default=False, help='suppress output text')