mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-15 12:04:18 +01:00
Version number, name, and build details.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
11
version.h
Normal file
11
version.h
Normal 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 */
|
||||
Reference in New Issue
Block a user