+static struct option const long_options[] = {
+ {"datagram", no_argument, NULL, 'd'},
+ {"packet-loss", required_argument, NULL, 'l'},
+ {"help", no_argument, NULL, 1},
+ {NULL, 0, NULL, 0}
+};
+
+const char *program_name;
+
+static void usage() {
+ fprintf(stderr, "Usage: %s [options] my_ecdsa_key_file his_ecdsa_key_file [host] port\n\n", program_name);
+ fprintf(stderr, "Valid options are:\n"
+ " -d, --datagram Enable datagram mode.\n"
+ " -l, --packet-loss RATE Fake packet loss of RATE percent.\n"
+ "\n");
+ fprintf(stderr, "Report bugs to tinc@tinc-vpn.org.\n");
+}
+