Because this is needed for help2man to determine the program name.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
#include <nih/string.h>
#include "cgmanager.h"
+#include "config.h" // for VERSION
struct lxcfs_state {
/*
swallow_arg(&argc, argv, "-f");
swallow_option(&argc, argv, "-o", "allow_other");
+ if (argc == 2 && strcmp(argv[1], "--version") == 0) {
+ fprintf(stderr, "%s\n", VERSION);
+ exit(0);
+ }
if (argc != 2 || is_help(argv[1]))
usage(argv[0]);