mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 23:45:58 +01:00
Remove -o and -f options
These can be specified in the configuration file now.
This commit is contained in:
parent
f978a6eb77
commit
5d3cf9a8fa
1 changed files with 1 additions and 13 deletions
|
@ -26,12 +26,9 @@ static int xdpw_usage(FILE *stream, int rc) {
|
|||
"\n"
|
||||
" -l, --loglevel=<loglevel> Select log level (default is ERROR).\n"
|
||||
" QUIET, ERROR, WARN, INFO, DEBUG, TRACE\n"
|
||||
" -o, --output=<name> Select output to capture.\n"
|
||||
" metadata (performs no conversion).\n"
|
||||
" -c, --config=<config file> Select config file.\n"
|
||||
" (default is $XDG_CONFIG_HOME/xdg-desktop-portal-wlr/config)\n"
|
||||
" -r, --replace Replace a running instance.\n"
|
||||
" -f, --max-fps=<fps> Set the FPS limit (default 0, no limit).\n"
|
||||
" -h, --help Get help (this text).\n"
|
||||
"\n";
|
||||
|
||||
|
@ -54,9 +51,7 @@ int main(int argc, char *argv[]) {
|
|||
static const char *shortopts = "l:o:c:f:rh";
|
||||
static const struct option longopts[] = {
|
||||
{ "loglevel", required_argument, NULL, 'l' },
|
||||
{ "output", required_argument, NULL, 'o' },
|
||||
{ "config", required_argument, NULL, 'c' },
|
||||
{ "max-fps", required_argument, NULL, 'f' },
|
||||
{ "replace", no_argument, NULL, 'r' },
|
||||
{ "help", no_argument, NULL, 'h' },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
|
@ -72,19 +67,12 @@ int main(int argc, char *argv[]) {
|
|||
case 'l':
|
||||
loglevel = get_loglevel(optarg);
|
||||
break;
|
||||
case 'o':
|
||||
config.screencast_conf.output_name = strdup(optarg);
|
||||
config.screencast_conf.chooser_type = XDPW_CHOOSER_NONE;
|
||||
break;
|
||||
case 'c':
|
||||
configfile = strdup(optarg);
|
||||
break;
|
||||
case 'r':
|
||||
replace = true;
|
||||
break;
|
||||
case 'f':
|
||||
config.screencast_conf.max_fps = atof(optarg);
|
||||
break;
|
||||
case 'h':
|
||||
return xdpw_usage(stdout, EXIT_SUCCESS);
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue