mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
14 lines
367 B
C
14 lines
367 B
C
#ifndef LIGHTNING_COMMON_VERSION_H
|
|
#define LIGHTNING_COMMON_VERSION_H
|
|
#include "config.h"
|
|
#include <ccan/opt/opt.h>
|
|
|
|
char *version_and_exit(const void *unused);
|
|
const char *version(void);
|
|
|
|
#define opt_register_version() \
|
|
opt_register_early_noarg("--version|-V", version_and_exit, NULL, \
|
|
"Print version and exit")
|
|
|
|
#endif /* LIGHTNING_COMMON_VERSION_H */
|