@@ -185,7 +185,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
185
185
* envchanged = 1 ;
186
186
} else if (!strcmp (cmd , "--git-dir" )) {
187
187
if (* argc < 2 ) {
188
- fprintf (stderr , _ ("no directory given for --git-dir\n" ) );
188
+ fprintf (stderr , _ ("no directory given for '%s' option\n" ), " --git-dir" );
189
189
usage (git_usage_string );
190
190
}
191
191
setenv (GIT_DIR_ENVIRONMENT , (* argv )[1 ], 1 );
@@ -213,7 +213,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
213
213
* envchanged = 1 ;
214
214
} else if (!strcmp (cmd , "--work-tree" )) {
215
215
if (* argc < 2 ) {
216
- fprintf (stderr , _ ("no directory given for --work-tree\n" ) );
216
+ fprintf (stderr , _ ("no directory given for '%s' option\n" ), " --work-tree" );
217
217
usage (git_usage_string );
218
218
}
219
219
setenv (GIT_WORK_TREE_ENVIRONMENT , (* argv )[1 ], 1 );
@@ -297,7 +297,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
297
297
* envchanged = 1 ;
298
298
} else if (!strcmp (cmd , "-C" )) {
299
299
if (* argc < 2 ) {
300
- fprintf (stderr , _ ("no directory given for -C \n" ));
300
+ fprintf (stderr , _ ("no directory given for '%s' option \n" ), "-C" );
301
301
usage (git_usage_string );
302
302
}
303
303
if ((* argv )[1 ][0 ]) {
0 commit comments