02111-1307, USA. */
#include <config.h>
+#include "cmdline.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
char *subst_vars (char *);
+static int testing_mode=0;
+
/* Parses the command line specified by ARGC and ARGV as received by
main(). */
void
{"pipe", no_argument, NULL, 'p'},
{"recon", no_argument, NULL, 'n'},
{"safer", no_argument, NULL, 's'},
- {"testing-mode", no_argument, &set_testing_mode, 1},
+ {"testing-mode", no_argument, &testing_mode, 1},
{"verbose", no_argument, NULL, 'v'},
{"version", no_argument, NULL, 'V'},
{0, 0, 0, 0},
config_path = optarg;
break;
case 'f':
- printf (_("-f not yet implemented\n"));
+ printf(_("%s is not yet implemented."), "-f");
+ putchar('\n');
break;
case 'h':
usage ();
outp_list_classes ();
err_hcf (1);
case 'n':
- printf (_("-n not yet implemented\n"));
+ printf (_("%s is not yet implemented."),"-n");
+ putchar('\n');
break;
case 'o':
if (!cleared_device_defaults)
outp_configure_add (optarg);
break;
case 'p':
- printf (_("-p not yet implemented\n"));
+ printf (_("%s is not yet implemented."),"-p");
+ putchar('\n');
break;
case 'r':
no_statrc = 1;
break;
case 's':
- set_safer = 1;
+ make_safe();
break;
case 'v':
err_verbosity++;
}
}
- if (set_testing_mode)
+
+ if (testing_mode)
{
/* FIXME: Later this option should do some other things, too. */
- set_viewwidth = 9999;
+ force_long_view();
}
+
for (i = optind; i < argc; i++)
{
"\n");
/* Message that describes PSPP command-line syntax, continued. */
-static const char post_syntax_message[] =
-N_("\nReport bugs to <bug-gnu-pspp@gnu.org>.\n");
+static const char post_syntax_message[] = N_("\nReport bugs to <%s>.\n");
/* Writes a syntax description to stdout and terminates. */
static void
{
printf (gettext (pre_syntax_message), pgmname);
outp_list_classes ();
- printf (gettext (post_syntax_message));
+ printf (gettext (post_syntax_message),PACKAGE_BUGREPORT);
err_hcf (1);
}