Remove deprecated OPTION_BOOLEAN for parsing arguments
[git/git.git] / builtin / clone.c
index 430307b..e7b0b13 100644 (file)
@@ -64,10 +64,9 @@ static struct option builtin_clone_options[] = {
                 N_("force progress reporting")),
        OPT_BOOLEAN('n', "no-checkout", &option_no_checkout,
                    N_("don't create a checkout")),
-       OPT_BOOLEAN(0, "bare", &option_bare, N_("create a bare repository")),
-       { OPTION_BOOLEAN, 0, "naked", &option_bare, NULL,
-               N_("create a bare repository"),
-               PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
+       OPT_BOOL(0, "bare", &option_bare, N_("create a bare repository")),
+       OPT_HIDDEN_BOOL(0, "naked", &option_bare,
+                       N_("create a bare repository")),
        OPT_BOOLEAN(0, "mirror", &option_mirror,
                    N_("create a mirror repository (implies bare)")),
        OPT_BOOL('l', "local", &option_local,