mirror of
https://github.com/perk11/runwhenidle.git
synced 2026-01-09 13:48:01 -05:00
Fix parsing of -t argument not working
This commit is contained in:
2
main.c
2
main.c
@@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Parse command line options
|
||||
int option;
|
||||
while ((option = getopt_long(argc, argv, "htvq", long_options, NULL)) != -1) {
|
||||
while ((option = getopt_long(argc, argv, "hvqt:", long_options, NULL)) != -1) {
|
||||
switch (option) {
|
||||
case 't':
|
||||
user_idle_timeout_ms = atoi(optarg);
|
||||
|
||||
Reference in New Issue
Block a user