aboutsummaryrefslogtreecommitdiff
path: root/common/args.zig
AgeCommit message (Collapse)AuthorFilesLines
2021-07-24common: remove support for positional argumentsIsaac Freund1-126/+0
This is currently unused and I don't like the approach anymore regardless. If/when we need positional arguments (probably when implementing the upcoming river-control protocol in rivertile) they should be handled separately from flags. This commit also improves the CLI error reporting to always print the usage string if invalid arguments were passed.
2021-07-24river: use common CLI arg parsing codeIsaac Freund1-0/+126
This makes river's main() function quite a bit cleaner.