2017-08-28 17:06:01 +01:00
|
|
|
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_VERSION_H
|
2016-01-21 20:08:08 +00:00
|
|
|
#include "config.h"
|
2015-08-08 12:15:49 +01:00
|
|
|
|
|
|
|
char *version_and_exit(const void *unused);
|
2016-09-13 20:52:41 +01:00
|
|
|
const char *version(void);
|
2015-08-08 12:15:49 +01:00
|
|
|
|
|
|
|
#define opt_register_version() \
|
2017-01-04 03:34:15 +00:00
|
|
|
opt_register_early_noarg("--version|-V", version_and_exit, NULL, \
|
2018-01-24 19:33:47 +00:00
|
|
|
"Print version and exit")
|
2015-08-08 12:15:49 +01:00
|
|
|
|
2017-08-28 17:06:01 +01:00
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|