Opened 8 years ago

Closed 5 months ago

#824 closed request (fixed)

OptionVersion class

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.20
Component: utility Version:
Keywords: Cc:


There is a class for --help but no class for --version.

Class should collect data from config.h when available and also allow user to override and set data explicitly (e.g. copyright year). Output and behaviour see e.g. svndigest.

The collection from config.h is a bit tricky as it has to be collected from the application config.h, which implies these data cannot be compiled into the lib but has to be inlined.

Change History (3)

comment:1 Changed 8 years ago by Peter

Of note, GCS mandates that first line in --version output should not depend on argv[0].

comment:2 Changed 5 months ago by Peter

Milestone: yat 0.x+yat 0.20
Status: newassigned

comment:3 Changed 5 months ago by Peter

Resolution: fixed
Status: assignedclosed

In 4153:

New class OptionVersion?. closes #824.

Note: See TracTickets for help on using tickets.