We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-L
-U
1 parent 089ff7b commit e86dd1cCopy full SHA for e86dd1c
Userland/Utilities/usermod.cpp
@@ -1,5 +1,6 @@
1
/*
2
* Copyright (c) 2021, Brandon Pruitt <brapru@pm.me>
3
+ * Copyright (c) 2023, Tim Ledbetter <timledbetter@gmail.com>
4
*
5
* SPDX-License-Identifier: BSD-2-Clause
6
*/
@@ -50,6 +51,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
50
51
52
args_parser.parse(arguments);
53
54
+ if (lock && unlock) {
55
+ warnln("The -L and -U options are mutually exclusive");
56
+ args_parser.print_usage(stderr, arguments.strings[0]);
57
+ return 1;
58
+ }
59
+
60
auto account_or_error = Core::Account::from_name(username);
61
62
if (account_or_error.is_error()) {
0 commit comments