2017-08-29 01:36:01 +09:30
|
|
|
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
|
|
#define LIGHTNING_COMMON_VERSION_H
|
2016-01-22 06:38:08 +10:30
|
|
|
#include "config.h"
|
2015-08-08 20:45:49 +09:30
|
|
|
#include <ccan/opt/opt.h>
|
|
|
|
|
|
|
|
char *version_and_exit(const void *unused);
|
2016-09-14 05:22:41 +09:30
|
|
|
const char *version(void);
|
2015-08-08 20:45:49 +09:30
|
|
|
|
|
|
|
#define opt_register_version() \
|
2017-01-04 14:04:15 +10:30
|
|
|
opt_register_early_noarg("--version|-V", version_and_exit, NULL, \
|
2018-01-24 20:33:47 +01:00
|
|
|
"Print version and exit")
|
2015-08-08 20:45:49 +09:30
|
|
|
|
2017-08-29 01:36:01 +09:30
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|