document -qvd options
This commit is contained in:
		| @@ -74,6 +74,12 @@ this process a SIGTERM and wait for it to terminate (if it hasn't already). | |||||||
| This makes it ideal not only for initialization but also for execing into a | This makes it ideal not only for initialization but also for execing into a | ||||||
| user-level service manager like s6 or `systemd --user`. | user-level service manager like s6 or `systemd --user`. | ||||||
|  |  | ||||||
|  | More/less verbose output can be requested with flags as well: | ||||||
|  |  | ||||||
|  | * `-q`: quiet (log level WLR_SILENT) | ||||||
|  | * `-v`: verbose (log level WLR_INFO) | ||||||
|  | * `-d`: debug (log level WLR_DEBUG) | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Known limitations and issues | ## Known limitations and issues | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								dwl.c
									
									
									
									
									
								
							| @@ -1470,14 +1470,11 @@ main(int argc, char *argv[]) | |||||||
| 			startup_cmd = optarg; | 			startup_cmd = optarg; | ||||||
| 			break; | 			break; | ||||||
| 		default: | 		default: | ||||||
| 			printf("Usage: %s [-s startup command]\n", argv[0]); | 			goto usage; | ||||||
| 			return EXIT_FAILURE; |  | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	if (optind < argc) { | 	if (optind < argc) | ||||||
| 		printf("Usage: %s [-s startup command]\n", argv[0]); | 		goto usage; | ||||||
| 		return EXIT_FAILURE; |  | ||||||
| 	} |  | ||||||
| 	wlr_log_init(loglevel, NULL); | 	wlr_log_init(loglevel, NULL); | ||||||
|  |  | ||||||
| 	/* The Wayland display is managed by libwayland. It handles accepting | 	/* The Wayland display is managed by libwayland. It handles accepting | ||||||
| @@ -1491,4 +1488,8 @@ main(int argc, char *argv[]) | |||||||
| 	wl_display_destroy_clients(dpy); | 	wl_display_destroy_clients(dpy); | ||||||
| 	wl_display_destroy(dpy); | 	wl_display_destroy(dpy); | ||||||
| 	return EXIT_SUCCESS; | 	return EXIT_SUCCESS; | ||||||
|  |  | ||||||
|  | usage: | ||||||
|  | 	printf("Usage: %s [-qvd] [-s startup command]\n", argv[0]); | ||||||
|  | 	return EXIT_FAILURE; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user