As suggested by Johannes Schindelin. Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- builtin-config.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin-config.c b/builtin-config.c index e744ad8..3463b1c 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -375,10 +375,12 @@ int cmd_config(int argc, const char **argv, const char *unused_prefix) } if (actions & ACTION_LIST) { + check_argc(argc, 0, 0); if (git_config(show_all_config, NULL) < 0) die("error processing config file(s)"); } else if (actions & ACTION_EDIT) { + check_argc(argc, 0, 0); const char *config_filename; if (config_exclusive_filename) config_filename = config_exclusive_filename; -- 1.6.1.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html