diff options
author | nicm <nicm> | 2019-06-05 20:00:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-05 20:00:53 +0000 |
commit | 8f40796f05f2db0ff8b2c9231054b62b511a7ba0 (patch) | |
tree | d5d32dbdcb1960e21e7cd877b71033cbb8ee1dbd /cmd-source-file.c | |
parent | 09e90c1645a8ecd1e467b13a743bb46d48febd37 (diff) |
Add a -v flag to source-file to show the commands and line numbers.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r-- | cmd-source-file.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index d88f74cf..b867db67 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -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; |