Add command line parsing

Closes #6
This commit is contained in:
Drew DeVault 2015-08-20 08:37:09 -04:00
parent 927ef0a5ec
commit 579fe70ed9
5 changed files with 86 additions and 6 deletions

View file

@ -414,7 +414,7 @@ static bool cmd_reload(struct sway_config *config, int argc, char **argv) {
if (!checkarg(argc, "reload", EXPECTED_EQUAL_TO, 0)) {
return false;
}
if (!load_config()) {
if (!load_config(NULL)) { // TODO: Use config given from -c
return false;
}
arrange_windows(&root_container, -1, -1);