Version number, name, and build details.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-08-08 20:45:49 +09:30
parent 6883d28f6d
commit 1cb147c5b8
25 changed files with 74 additions and 3 deletions

11
version.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef LIGHTNING_VERSION_H
#define LIGHTNING_VERSION_H
#include <ccan/opt/opt.h>
char *version_and_exit(const void *unused);
#define opt_register_version() \
opt_register_noarg("--version|-V", version_and_exit, NULL, \
"print version to standard output and exit")
#endif /* LIGHTNING_VERSION_H */