Skip to content

Commit

Permalink
very useful update for usage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tudurom committed Aug 8, 2017
1 parent 742c44f commit e62257b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ send_command(struct Command *c, int argc, char **argv)
static void
usage(char *name, int status)
{
fprintf(stderr, "Usage: %s <command> [args...]\n", name);
fprintf(stderr, "Usage: %s [-h|-v] <command> [args...]\n", name);
exit(status);
}

Expand Down
3 changes: 2 additions & 1 deletion wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2443,6 +2443,7 @@ event_client_message(xcb_generic_event_t *ev)
if (client == NULL)
return;
if (e->type == ewmh->_NET_WM_STATE) {
DMSG("got _NET_WM_STATE for 0x%08x\n", client->window);
handle_wm_state(client, e->data.data32[1], e->data.data32[0]);
handle_wm_state(client, e->data.data32[2], e->data.data32[0]);
}
Expand Down Expand Up @@ -2940,7 +2941,7 @@ ipc_wm_config(uint32_t *d)
static void
usage(char *name)
{
fprintf(stderr, "Usage: %s [-h|-c CONFIG_PATH]\n", name);
fprintf(stderr, "Usage: %s [-h|-v|-c CONFIG_PATH]\n", name);

exit(EXIT_SUCCESS);
}
Expand Down

0 comments on commit e62257b

Please sign in to comment.