diff options
author | Phil Jones <philj56@gmail.com> | 2022-09-27 14:34:03 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-09-27 14:34:03 +0100 |
commit | 4801fff08bf3d42361a72e339c59390828983f49 (patch) | |
tree | fc23e1fa0a954181159ce1ad8bf17546259e56f1 /src/main.c | |
parent | 452c1b6fa737661358cd2d6ce47d1a6400039f53 (diff) |
Add --include option.
This allows config files to include other files, so you can e.g. split
style and behaviour options into different files.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -775,6 +775,7 @@ static void usage() "\n" " -h, --help Print this message and exit.\n" " -c, --config <path> Specify a config file.\n" +" --include <path> Include an additional config file.\n" " --font <name|path> Font to use.\n" " --font-size <pt> Point size of text.\n" " --background-color <color> Color of the background.\n" @@ -828,6 +829,7 @@ static void usage() const struct option long_options[] = { {"help", no_argument, NULL, 'h'}, {"config", required_argument, NULL, 'c'}, + {"include", required_argument, NULL, 0}, {"anchor", required_argument, NULL, 0}, {"background-color", required_argument, NULL, 0}, {"corner-radius", required_argument, NULL, 0}, |