Don't crash when failing to parse arguments

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2025-11-30 09:14:10 +01:00
parent 1980b2e479
commit 10854e643a
22 changed files with 89 additions and 54 deletions

View File

@@ -4,6 +4,7 @@ brightness_up = increase brightness
capslock = capslock
custom = custom
err_alloc = failed memory allocation
err_args = unable to parse command line arguments
err_autologin_session = autologin session not found
err_bounds = out-of-bounds index
err_brightness_change = failed to change brightness
@@ -15,6 +16,7 @@ err_domain = invalid domain
err_empty_password = empty password not allowed
err_envlist = failed to get envlist
err_get_active_tty = failed to get active tty
err_hibernate = failed to execute hibernate command
err_hostname = failed to get hostname
err_lock_state = failed to get lock state
err_log = failed to open log file
@@ -42,8 +44,7 @@ err_perm_dir = failed to change current directory
err_perm_group = failed to downgrade group permissions
err_perm_user = failed to downgrade user permissions
err_pwnam = failed to get user info
err_sleep = failed to execute sleep command
err_battery = failed to load battery status
err_switch_tty = failed to switch tty
err_tty_ctrl = tty control transfer failed
@@ -55,6 +56,7 @@ err_xauth = xauth command failed
err_xcb_conn = xcb connection failed
err_xsessions_dir = failed to find sessions folder
err_xsessions_open = failed to open sessions folder
hibernate = hibernate
insert = insert
login = login
logout = logged out
@@ -67,7 +69,6 @@ restart = reboot
shell = shell
shutdown = shutdown
sleep = sleep
wayland = wayland
x11 = x11
xinitrc = xinitrc