Rev 455 | Rev 458 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 455 | Rev 456 | ||
|---|---|---|---|
| Line 71... | Line 71... | ||
| 71 | error = true; |
71 | error = true; |
| 72 | } |
72 | } |
| 73 | 73 | ||
| 74 | string node = CommandLine["n"]; |
74 | string node = CommandLine["n"]; |
| 75 | 75 | ||
| - | 76 | if (node != null) { |
|
| 76 | if (!parseNodeId(node)) { |
77 | if (!parseNodeId(node)) { |
| 77 | error = true; |
78 | error = true; |
| - | 79 | } |
|
| 78 | } |
80 | } |
| 79 | 81 | ||
| 80 | if (!aTerminal && !sNodeid) { |
82 | if (!aTerminal && !sNodeid) { |
| 81 | Console.WriteLine("When not in terminal mode a nodeid must be supplied"); |
83 | Console.WriteLine("When not in terminal mode a nodeid must be supplied"); |
| 82 | error = true; |
84 | error = true; |
| Line 96... | Line 98... | ||
| 96 | } |
98 | } |
| 97 | 99 | ||
| 98 | if (!error) { |
100 | if (!error) { |
| 99 | //commandline feedback output (use debuglevel for hiding these) |
101 | //commandline feedback output (use debuglevel for hiding these) |
| 100 | Console.WriteLine("canDude settings:"); |
102 | Console.WriteLine("canDude settings:"); |
| 101 | Console.WriteLine |
103 | if (sNodeid) { Console.WriteLine("Nodeaddress: 0x" + String.Format("{0:x2}", nodeid)); } |
| 102 | Console.WriteLine("Host: {0}:{1}", host, port); |
104 | Console.WriteLine("Host: {0}:{1}", host, port); |
| 103 | if (hexfile != null) { Console.WriteLine("Hexfile: {0}", hexfile); } |
105 | if (hexfile != null) { Console.WriteLine("Hexfile: {0}", hexfile); } |
| 104 | Console.Write("Parameters: "); |
106 | Console.Write("Parameters: "); |
| 105 | if (aBios) { Console.Write("Bios "); } |
107 | if (aBios) { Console.Write("Bios "); } |
| 106 | if (aReset) { Console.Write("Reset "); } |
108 | if (aReset) { Console.Write("Reset "); } |
| Line 144... | Line 146... | ||
| 144 | } |
146 | } |
| 145 | 147 | ||
| 146 | string instr; |
148 | string instr; |
| 147 | do { |
149 | do { |
| 148 | Console.Write("> "); |
150 | Console.Write("> "); |
| 149 | instr = Console.ReadLine |
151 | instr = Console.ReadLine(); |
| 150 | } while (parseInput(instr)); |
152 | } while (parseInput(instr)); |
| 151 | 153 | ||
| 152 | //exit command |
154 | //exit command |
| 153 | dc.stop(); |
155 | dc.stop(); |
| 154 | } |
156 | } |