git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] bugreport: clarify that -o expects a directory and not a file

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Sep 28, 2022, 05:04 UTC
Message-ID
<20220928050432.701512-1-alexhenrie24@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
 Documentation/git-bugreport.txt | 2 +-
 builtin/bugreport.c             | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-bugreport.txt b/Documentation/git-bugreport.txt
index eca726e579..784d9b6304 100644
--- a/Documentation/git-bugreport.txt
+++ b/Documentation/git-bugreport.txt
@@ -8,7 +8,7 @@ git-bugreport - Collect information for user to file a bug report
 SYNOPSIS
 --------
 [verse]
-'git bugreport' [(-o | --output-directory) <path>] [(-s | --suffix) <format>]
+'git bugreport' [(-o | --output-directory) <dir>] [(-s | --suffix) <format>]
 		[--diagnose[=<mode>]]
 
 DESCRIPTION
diff --git a/builtin/bugreport.c b/builtin/bugreport.c
index 530895be55..827688183e 100644
--- a/builtin/bugreport.c
+++ b/builtin/bugreport.c
@@ -60,7 +60,7 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 }
 
 static const char * const bugreport_usage[] = {
-	N_("git bugreport [-o|--output-directory <file>] [-s|--suffix <format>] [--diagnose[=<mode>]"),
+	N_("git bugreport [-o|--output-directory <dir>] [-s|--suffix <format>] [--diagnose[=<mode>]"),
 	NULL
 };
 
@@ -110,7 +110,7 @@ int cmd_bugreport(int argc, const char **argv, const char *prefix)
 		OPT_CALLBACK_F(0, "diagnose", &diagnose, N_("mode"),
 			       N_("create an additional zip archive of detailed diagnostics (default 'stats')"),
 			       PARSE_OPT_OPTARG, option_parse_diagnose),
-		OPT_STRING('o', "output-directory", &option_output, N_("path"),
+		OPT_STRING('o', "output-directory", &option_output, N_("dir"),
 			   N_("specify a destination for the bugreport file(s)")),
 		OPT_STRING('s', "suffix", &option_suffix, N_("format"),
 			   N_("specify a strftime format suffix for the filename(s)")),
-- 
2.37.3
Next: Ævar Arnfjörð Bjarmason
Message 1 of 3 in “bugreport: clarify that -o expects a directory and not a file”
  1. bugreport: clarify that -o expects a directory and not a fileAlex Henrie, Sep 28, 2022
  2. Ævar Arnfjörð BjarmasonSep 28, 2022
  3. Alex HenrieSep 28, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.