~ubuntu-branches/ubuntu/precise/nordugrid-arc/precise

« back to all changes in this revision

Viewing changes to src/hed/libs/common/OptionParser.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2011-10-24 02:19:37 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111024021937-8whiie90uq2oqsok
Tags: 1.1.0-2
* Backport fixes for endian independent md5 checksum
* Filter out -Wl,-Bsymbolic-functions from default Ubuntu LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
#ifdef HAVE_GLIBMM_OPTIONCONTEXT_SET_SUMMARY
11
11
#include <glibmm/optioncontext.h>
 
12
#ifndef HAVE_GLIBMM_OPTIONCONTEXT_GET_HELP
 
13
#include <arc/IString.h>
 
14
#endif
12
15
#else
13
16
#include <getopt.h>
14
17
#include <arc/IString.h>
244
247
 
245
248
    try {
246
249
      ctx.parse(argc, argv);
247
 
    } catch (Glib::OptionError err) {
 
250
    } catch (Glib::OptionError& err) {
248
251
      std::cout << err.what() << std::endl;
249
252
      exit(1);
250
253
    }
252
255
#ifdef HAVE_GLIBMM_OPTIONCONTEXT_GET_HELP
253
256
      std::cout << ctx.get_help() << std::endl;
254
257
#else
255
 
      std::cout << "Use -? to get usage description" << std::endl;
 
258
      std::cout << IString("Use -? to get usage description") << std::endl;
256
259
#endif
257
260
      exit(0);
258
261
    }