+/* Load config from command line options */
+static struct option long_options[] = {
+ /* name hasarg flag val */
+ {"border", 2, NULL, 'b'},
+ {"margin", 2, NULL, 'm'},
+ {"capture", 0, NULL, 'c'},
+ {"int", 1, NULL, 'i'},
+ {"str", 1, NULL, 's'},
+ {"help", 0, NULL, 'h'},
+ {NULL, 0, NULL, 0 },
+};
+
+static void usage(int argc, char **argv)
+{
+ printf("Usage:\n");
+ printf(" %s [OPTION...]\n", argv[0]);
+ printf("\n");
+ printf("Options:\n");
+ printf(" -b, --border=n Draw an n pixel window border\n");
+ printf(" -m, --margin=n Leave an n pixel margin around windows\n");
+ printf(" -c, --capture Automatically arrange all existing windows\n");
+ printf(" -i, --int=key=num Set integer config option\n");
+ printf(" -s, --str=key=str Set string config option\n");
+ printf(" -h, --help Print usage information\n");
+}
+