summaryrefslogtreecommitdiff
path: root/setup/devcon/devcon.cpp
diff options
context:
space:
mode:
authoremilyhobby <[email protected]>2023-11-21 12:01:43 -0800
committerGitHub <[email protected]>2023-11-21 12:01:43 -0800
commit00d6f86f2aa7fccb7cdd16045d0abfbe1cfa0aed (patch)
tree7f875400f13b39c9a85a1d5c3919efb953476b15 /setup/devcon/devcon.cpp
parent796e36a252aaf723d8ec642c37b45235622c53e7 (diff)
Updates to DevCon RC file and input reading (#1048)
Updates to RC file and input reading
Diffstat (limited to 'setup/devcon/devcon.cpp')
-rw-r--r--setup/devcon/devcon.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup/devcon/devcon.cpp b/setup/devcon/devcon.cpp
index b1bdbf2a..7e7e88a7 100644
--- a/setup/devcon/devcon.cpp
+++ b/setup/devcon/devcon.cpp
@@ -1149,7 +1149,12 @@ Return Value:
for(dispIndex = 0;DispatchTable[dispIndex].cmd;dispIndex++) {
if ((_tcsicmp(cmd,DispatchTable[dispIndex].cmd) == 0) &&
(argc >= firstArg)) {
- retval = DispatchTable[dispIndex].func(baseName,machine,flags,argc-firstArg,argv+firstArg);
+ if (argc == firstArg) {
+ retval = DispatchTable[dispIndex].func(baseName,machine,flags,0,NULL);
+ } else {
+ retval = DispatchTable[dispIndex].func(baseName,machine,flags,argc-firstArg,argv+firstArg);
+ }
+
switch(retval) {
case EXIT_USAGE:
CommandUsage(baseName,DispatchTable[dispIndex].cmd);