View Issue Details

IDProjectCategoryView StatusLast Update
0003158GNUnetutil librarypublic2013-12-24 19:54
ReporterBart Polot Assigned ToChristian Grothoff Due Date
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 10:24

manager   ~0007767

Fixed in SVN 31132 -- by changing the comment.

Issue History

Date ModifiedUsernameFieldChange
2013-12-06 01:38Bart PolotNew Issue
2013-12-06 01:38Bart PolotStatusnew => assigned
2013-12-06 01:38Bart PolotAssigned To => Christian Grothoff
2013-12-06 10:24Christian GrothoffNote Added: 0007767
2013-12-06 10:24Christian GrothoffStatusassigned => resolved
2013-12-06 10:24Christian GrothoffFixed in Version => 0.10.0
2013-12-06 10:24Christian GrothoffResolutionopen => fixed
2013-12-06 10:24Christian GrothoffTarget Version => 0.10.0
2013-12-24 19:54Christian GrothoffStatusresolved => closed