common: standardize on -help option

Also:

- Check for -help option *before* unknown options
- Use common flags parsing code for riverctl
- Add usage text to riverctl
This commit is contained in:
Isaac Freund
2021-07-24 19:31:04 +02:00
parent a5a505ecba
commit 23088b800c
5 changed files with 60 additions and 31 deletions

View File

@ -100,6 +100,7 @@ pub fn build(b: *zbs.Builder) !void {
riverctl.step.dependOn(&scanner.step);
riverctl.addPackage(scanner.getPkg());
riverctl.addPackagePath("flags", "common/flags.zig");
riverctl.linkLibC();
riverctl.linkSystemLibrary("wayland-client");