~ubuntu-branches/ubuntu/saucy/gengetopt/saucy-proposed

« back to all changes in this revision

Viewing changes to tests/test_only_flags_cmd.c.test

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-05-09 12:48:17 UTC
  • mfrom: (16.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130509124817-ex5jkvyh7cu8o22c
Tags: 2.22.6-2
* Upload to unstable.
* Fix VCS URLs.
* Bump Standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
const char *gengetopt_args_info_usage = "Usage: test_only_flags [OPTIONS]... [FILES]...";
31
31
 
 
32
const char *gengetopt_args_info_versiontext = "";
 
33
 
32
34
const char *gengetopt_args_info_description = "";
33
35
 
34
36
const char *gengetopt_args_info_help[] = {
88
90
  printf ("%s %s\n",
89
91
     (strlen(TEST_ONLY_FLAGS_CMD_PARSER_PACKAGE_NAME) ? TEST_ONLY_FLAGS_CMD_PARSER_PACKAGE_NAME : TEST_ONLY_FLAGS_CMD_PARSER_PACKAGE),
90
92
     TEST_ONLY_FLAGS_CMD_PARSER_VERSION);
 
93
 
 
94
  if (strlen(gengetopt_args_info_versiontext) > 0)
 
95
    printf("\n%s\n", gengetopt_args_info_versiontext);
91
96
}
92
97
 
93
98
static void print_help_common(void) {
395
400
{
396
401
  int c;        /* Character of the parsed option.  */
397
402
 
398
 
  int error = 0;
 
403
  int error_occurred = 0;
399
404
  struct gengetopt_args_info local_args_info;
400
405
  
401
406
  int override;
474
479
 
475
480
  test_only_flags_cmd_parser_release (&local_args_info);
476
481
 
477
 
  if ( error )
 
482
  if ( error_occurred )
478
483
    return (EXIT_FAILURE);
479
484
 
480
485
  if (optind < argc)