diff options
author | 2019-06-05 20:00:53 +0000 | |
---|---|---|
committer | 2019-06-05 20:00:53 +0000 | |
commit | 5304b409a935f4849f86fa569260dd7f5fdcd9d4 (patch) | |
tree | 06329335b1b0bb067a7cfd638511201808b1495d /usr.bin/tmux/cmd-source-file.c | |
parent | Need to increment the argument to skip the prefix earlier, fixes (diff) | |
download | wireguard-openbsd-5304b409a935f4849f86fa569260dd7f5fdcd9d4.tar.xz wireguard-openbsd-5304b409a935f4849f86fa569260dd7f5fdcd9d4.zip |
Add a -v flag to source-file to show the commands and line numbers.
Diffstat (limited to 'usr.bin/tmux/cmd-source-file.c')
-rw-r--r-- | usr.bin/tmux/cmd-source-file.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-source-file.c b/usr.bin/tmux/cmd-source-file.c index a9ebd0c2261..ffe031ec03a 100644 --- a/usr.bin/tmux/cmd-source-file.c +++ b/usr.bin/tmux/cmd-source-file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-source-file.c,v 1.40 2019/05/28 12:20:28 nicm Exp $ */ +/* $OpenBSD: cmd-source-file.c,v 1.41 2019/06/05 20:00:53 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org> @@ -38,8 +38,8 @@ const struct cmd_entry cmd_source_file_entry = { .name = "source-file", .alias = "source", - .args = { "nq", 1, -1 }, - .usage = "[-nq] path ...", + .args = { "nqv", 1, -1 }, + .usage = "[-nqv] path ...", .flags = 0, .exec = cmd_source_file_exec @@ -63,6 +63,8 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) flags |= CMD_PARSE_QUIET; if (args_has(args, 'n')) flags |= CMD_PARSE_PARSEONLY; + if (args_has(args, 'v')) + flags |= CMD_PARSE_VERBOSE; utf8_stravis(&cwd, server_client_get_cwd(c, NULL), VIS_GLOB); retval = CMD_RETURN_NORMAL; |