diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2019-01-08 01:09:26 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2019-01-08 01:09:26 +0100 |
| commit | 5ce9fef2f59b2cad13a8460784f056db890700de (patch) | |
| tree | 2477e0104899f1c90f265077b7470bc9ef5ecfcd /src/cmdline.rs | |
| parent | 4e0853f81708dad75c4fc259dd9b318bf0a46bd3 (diff) | |
| download | rspsxserial-5ce9fef2f59b2cad13a8460784f056db890700de.tar.gz | |
ACK from the device is received.
Fixed serial configuration as "no parity".
Added command-line argument "--cdimg-folder", used to retrieve data.
Diffstat (limited to 'src/cmdline.rs')
| -rw-r--r-- | src/cmdline.rs | 13 |
1 files changed, 12 insertions, 1 deletions
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" } ]; |
