View Issue Details

IDProjectCategoryView StatusLast Update
0003158GNUnetutil librarypublic2013-12-24 20:54
ReporterBart Polot Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.10.0Fixed in Version0.10.0 
Summary0003158: GetOpt does not like options without short name.
DescriptionThe GNUNET_GETOPT_CommandLineOption doc says:

  /**
   * Short name of the option (use '\\0' for none).
   */
  const char shortName;

First, '\\0' is not a valid character (doc bug? doxygen reasons?), so I assume it reads '\0'.

Second, when leaving a short option as '\0', all short options stop working alltogether, including, -v and -h:
[bart@voyager ~/g/src/mesh]$ ./gnunet-mesh -h
/home/bart/g/src/mesh/.libs/lt-gnunet-mesh: invalid option -- h
Use --help to get a list of options.

Looking at a random sample of gnunet-* tools, none has long-name-only options...
TagsNo tags attached.

Activities

Christian Grothoff

2013-12-06 11:24

manager   ~0007767

Fixed in SVN 31132 -- by changing the comment.

Issue History

Date Modified Username Field Change
2013-12-06 02:38 Bart Polot New Issue
2013-12-06 02:38 Bart Polot Status new => assigned
2013-12-06 02:38 Bart Polot Assigned To => Christian Grothoff
2013-12-06 11:24 Christian Grothoff Note Added: 0007767
2013-12-06 11:24 Christian Grothoff Status assigned => resolved
2013-12-06 11:24 Christian Grothoff Fixed in Version => 0.10.0
2013-12-06 11:24 Christian Grothoff Resolution open => fixed
2013-12-06 11:24 Christian Grothoff Target Version => 0.10.0
2013-12-24 20:54 Christian Grothoff Status resolved => closed