Skip to content

Commit

Permalink
config: remove -n, -a, -s
Browse files Browse the repository at this point in the history
These are removed long before our time, I don't even know what they are.
We have been rejecting them with an error message for a while too, it's
time to just remove them.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed May 12, 2024
1 parent f510d8d commit f2ce275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
## Deprecated features

* Setting `--shadow-exclude-reg` is now a hard error. It was deprecated almost since the start of `picom`. `--clip-shadow-above` is the better alternative. (#1254)
* Remove command line options `-n`, `-a`, and `-s`. They were removed more than 10 years ago, it's time to finally get rid of them entirely. (#1254)

## Bug fixes

Expand Down
7 changes: 1 addition & 6 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static void usage(const char *argv0, int ret) {
}
}

static const char *shortopts = "D:I:O:r:o:m:l:t:i:e:hscnfCazGb";
static const char *shortopts = "D:I:O:r:o:m:l:t:i:e:hcfCzGb";

/// Get config options that are needed to parse the rest of the options
/// Return true if we should quit
Expand Down Expand Up @@ -443,11 +443,6 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable,
"cleared under certain types of windows, you can use "
"the \"full-shadow\" per window type option.");
break;
case 'n':
case 'a':
case 's':
log_error("-n, -a, and -s have been removed.");
failed = true; break;
// Long options
case 256:
// --config
Expand Down

0 comments on commit f2ce275

Please sign in to comment.