[ -I @var{dir} | --include=@var{dir} ] [ -i | --interactive ]
[ -r | --no-statrc ] [ -h | --help ] [ -l | --list ]
[ -s | --safer ]
- [ --testing-mode ] [ -V | --version ] [ -v | --verbose ]
+ [ --testing-mode ] [ -V | --version ]
[ @var{key}=@var{value} ] @var{file}@enddots{}
@end example
have, copying conditions and copyright, and e-mail address for bug
reports, then terminates.
-@item -v
-@item --verbose
-
-Increments PSPP's verbosity level. Higher verbosity levels cause
-PSPP to display greater amounts of information about what it is
-doing. Often useful for debugging PSPP's configuration.
-
-This option can be given multiple times to set the verbosity level to
-that value. The default verbosity level is 0, in which no informational
-messages will be displayed.
-
-Higher verbosity levels cause messages to be displayed when the
-corresponding events take place.
-
-@table @asis
-@item 1
-
-Driver and subsystem initializations.
-
-@item 2
-
-Completion of driver initializations. Beginning of driver closings.
-
-@item 3
-
-Completion of driver closings.
-
-@item 4
-
-Files searched for; success of searches.
-
-@item 5
-
-Individual directories included in file searches.
-@end table
-
-Each verbosity level also includes messages from lower verbosity levels.
-
@end table
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
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
#include <libpspp/hash.h>
#include <libpspp/message.h>
#include <libpspp/str.h>
-#include <libpspp/verbose-msg.h>
#include <libpspp/version.h>
#include "xalloc.h"
ds_init_cstr (&path, path_);
fn_interp_vars (ds_ss (&path), insert_env_var, NULL, &path);
- verbose_msg (2, _("searching for \"%s\" in path \"%s\""),
- base_name, ds_cstr (&path));
while (ds_separate (&path, ss_cstr (":"), &save_idx, &dir))
{
/* Construct file name. */
/* Check whether file exists. */
if (fn_exists (ds_cstr (&file)))
{
- verbose_msg (2, _("...found \"%s\""), ds_cstr (&file));
ds_destroy (&path);
return ds_cstr (&file);
}
}
/* Failure. */
- verbose_msg (2, _("...not found"));
ds_destroy (&path);
ds_destroy (&file);
return NULL;
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2010 Free Software Foundation, Inc.
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
#include <libpspp/message.h>
#include <libpspp/message.h>
#include <libpspp/str.h>
-#include <libpspp/verbose-msg.h>
#include <libpspp/version.h>
#include <output/tab.h>
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2009, 2010 Free Software Foundation, Inc.
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
#include <libpspp/message.h>
#include <libpspp/message.h>
#include <libpspp/str.h>
-#include <libpspp/verbose-msg.h>
#include <libpspp/version.h>
#include <output/tab.h>
/* Open file, if not yet opened. */
if (sfs->syntax_file == NULL)
{
- verbose_msg (1, _("opening \"%s\" as syntax file"), sfs->fn);
sfs->syntax_file = fn_open (sfs->fn, "r");
if (sfs->syntax_file == NULL)
src/libpspp/tmpfile.h \
src/libpspp/tower.c \
src/libpspp/tower.h \
- src/libpspp/verbose-msg.c \
- src/libpspp/verbose-msg.h \
src/libpspp/version.h
DISTCLEANFILES+=src/libpspp/version.c
+++ /dev/null
-/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
-
- 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 <config.h>
-
-#include <libpspp/verbose-msg.h>
-
-#include <stdarg.h>
-#include <stdio.h>
-
-#include "progname.h"
-
-/* Level of verbosity.
- Higher values cause more output. */
-static int verbosity;
-
-/* Increases the verbosity level. */
-void
-verbose_increment_level (void)
-{
- verbosity++;
-}
-
-/* Writes MESSAGE formatted with printf, to stderr, if the
- verbosity level is at least LEVEL. */
-void
-verbose_msg (int level, const char *format, ...)
-{
- if (level <= verbosity)
- {
- va_list args;
-
- va_start (args, format);
- fprintf (stderr, "%s: ", program_name);
- vfprintf (stderr, format, args);
- putc ('\n', stderr);
- va_end (args);
- }
-}
-
+++ /dev/null
-/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
-
- 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/>. */
-
-#ifndef VERBOSE_MSG_H
-#define VERBOSE_MSG_H 1
-
-#include <libpspp/compiler.h>
-
-void verbose_increment_level (void);
-void verbose_msg (int level, const char *format, ...)
- PRINTF_FORMAT (2, 3);
-
-#endif /* verbose-msg.h */
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2008 Free Software Foundation
+ Copyright (C) 2008, 2010 Free Software Foundation
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
#include <libpspp/llx.h>
#include <libpspp/string-map.h>
#include <libpspp/string-set.h>
-#include <libpspp/verbose-msg.h>
#include <output/driver.h>
#include <ui/command-line.h>
#include <ui/terminal/msg-ui.h>
static const struct argp_option test_options [] =
{
- {"verbose", 'v', 0, 0, N_("Increase diagnostic verbosity level"), 0},
{"testing-mode", 'T', 0, OPTION_HIDDEN, 0, 0},
{ 0, 0, 0, 0, 0, 0 }
case 'T':
settings_set_testing_mode (true);
break;
- case 'v':
- verbose_increment_level ();
- break;
default:
return ARGP_ERR_UNKNOWN;
}