~ubuntu-branches/ubuntu/utopic/nordugrid-arc/utopic

« 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: 2014-05-01 20:51:02 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140501205102-icy9t3348uxobyx7
Tags: 4.1.0-1
* 4.1.0 Release
* Call dh_autoreconf to support ppc64le (Closes: #744639)

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
#ifdef HAVE_GLIBMM_OPTIONCONTEXT_SET_SUMMARY
227
227
  std::list<std::string> OptionParser::Parse(int argc, char **argv) {
228
228
 
 
229
    if (argc > 0) {
 
230
      origcmdwithargs = argv[0];
 
231
      for (int i = 1; i < argc; ++i) {
 
232
        origcmdwithargs += " " + std::string(argv[i]);
 
233
      }
 
234
    }
 
235
 
229
236
    Glib::OptionContext ctx(arguments);
230
237
    if (!summary.empty())
231
238
      ctx.set_summary(summary);
283
290
 
284
291
  std::list<std::string> OptionParser::Parse(int argc, char **argv) {
285
292
 
 
293
    if (argc > 0) {
 
294
      origcmdwithargs = argv[0];
 
295
      for (int i = 1; i < argc; ++i) {
 
296
        origcmdwithargs += " " + std::string(argv[i]);
 
297
      }
 
298
    }
 
299
 
286
300
    struct option *longoptions = new struct option[options.size() + 3];
287
301
    int i = 0;
288
302
    std::string optstring;