X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=checkout-cache.c;h=8d67403ae86c6deafe4c2db5fef8af64f9fe6ecc;hb=a682ef9f06075b4bb83dcf479c91d578125084b9;hp=82ddbe412ab6c0b374982fed5cdf8fb41c352770;hpb=12dccc165400beae564d2357ce86c71937e5cdc0;p=git.git diff --git a/checkout-cache.c b/checkout-cache.c index 82ddbe41..8d67403a 100644 --- a/checkout-cache.c +++ b/checkout-cache.c @@ -75,6 +75,9 @@ static int checkout_all(void) return 0; } +static const char checkout_cache_usage[] = +"git-checkout-cache [-u] [-q] [-a] [-f] [-n] [--prefix=] [--] ..."; + int main(int argc, char **argv) { int i, force_filename = 0; @@ -123,6 +126,8 @@ int main(int argc, char **argv) state.base_dir_len = strlen(state.base_dir); continue; } + if (arg[0] == '-') + usage(checkout_cache_usage); } if (state.base_dir_len) { /* when --prefix is specified we do not