some fixes (still have problems in client-server mode)

This commit is contained in:
2026-07-14 15:51:23 +03:00
parent 92c3c54c65
commit a3134d31a8
11 changed files with 1181 additions and 472 deletions

View File

@@ -1,4 +1,20 @@
/*
* This file is part of the CCD_Capture project.
* Copyright 2026 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <math.h> // NAN
@@ -137,10 +153,11 @@ glob_pars *parse_args(int argc, char **argv){
// parse arguments
sl_parseargs(&argc, &argv, cmdlnopts);
if(help) sl_showhelp(-1, cmdlnopts);
if(G.verbose > VERBOSE_MESG) G.verbose = VERBOSE_MESG;
if(argc > 0){
G.outfileprefix = strdup(argv[0]);
if(argc > 1){
WARNX("%d unused parameters:\n", argc - 1);
WARNX(_("%d unused parameters:\n"), argc - 1);
for(int i = 1; i < argc; ++i)
printf("\t%4d: %s\n", i, argv[i]);
}