From 5ce9fef2f59b2cad13a8460784f056db890700de Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 8 Jan 2019 01:09:26 +0100 Subject: ACK from the device is received. Fixed serial configuration as "no parity". Added command-line argument "--cdimg-folder", used to retrieve data. --- src/cmdline.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/cmdline.rs') diff --git a/src/cmdline.rs b/src/cmdline.rs index d4828b2..3483855 100644 --- a/src/cmdline.rs +++ b/src/cmdline.rs @@ -25,7 +25,11 @@ pub const BAUDRATE_ARG : &'static str = "--baud-rate"; /// against a GUI front-end. pub const TCP_ARG : &'static str = "--tcp"; -const CMD_LINE_ARGS : [CmdLineArg; 4] = +/// This parameter defines what folder should +/// be looked up in order to set up a working environment +pub const CDIMG_FOLDER : &'static str = "--cdimg-folder"; + +const CMD_LINE_ARGS : [CmdLineArg; 5] = [ CmdLineArg { arg_str : PORT_NAME_ARG, @@ -54,6 +58,13 @@ const CMD_LINE_ARGS : [CmdLineArg; 4] = is_required : false, explanation : "Sets a TCP connection against a compatible \ front-end application" + }, + + CmdLineArg { + arg_str : CDIMG_FOLDER, + param_str : Some("[FOLDER]"), + is_required : true, + explanation : "Sets working directory" } ]; -- cgit v1.2.3