Debug printout of start-up command line

This commit is contained in:
Holger Vogt 2025-04-04 15:33:43 +02:00
parent cf934bca7d
commit f1381b43a1
1 changed files with 13 additions and 2 deletions

View File

@ -1359,6 +1359,16 @@ int main(int argc, char **argv)
#elif defined(WaGauss)
initw();
#endif
/* write out the ngspice start command */
if (ft_ngdebug)
{
int ni;
fprintf(stdout, "\nNote: ngspice start command line:\n");
for (ni = 0; ni < argc; ni++) {
fprintf(stdout, " %s", argv[ni]);
}
fprintf(stdout, "\n\n");
}
if (!ft_servermode) {
@ -1558,8 +1568,9 @@ int main(int argc, char **argv)
}
else {
fprintf(stderr,
"Note: No \".plot\", \".print\", or \".fourier\" lines; "
"no simulations run\n");
"Error: incomplete or empty netlist\n"
" or no \".plot\", \".print\", or \".fourier\" lines in batch mode;\n"
"no simulations run!\n");
sp_shutdown(EXIT_BAD);
}