From: Jonas Fonseca Date: Wed, 4 Feb 2009 13:59:23 +0000 (+0100) Subject: Move usage string near parse_options X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6df2d1501880b7d07ade215c60fe0369ace4bf83;p=tig.git Move usage string near parse_options --- diff --git a/tig.c b/tig.c index cba101c..df44fcf 100644 --- a/tig.c +++ b/tig.c @@ -857,19 +857,6 @@ get_request(const char *name) * Options */ -static const char usage[] = -"tig " TIG_VERSION " (" __DATE__ ")\n" -"\n" -"Usage: tig [options] [revs] [--] [paths]\n" -" or: tig show [options] [revs] [--] [paths]\n" -" or: tig blame [rev] path\n" -" or: tig status\n" -" or: tig < [git command output]\n" -"\n" -"Options:\n" -" -v, --version Show version and exit\n" -" -h, --help Show help message and exit"; - /* Option and state variables. */ static bool opt_date = TRUE; static bool opt_author = TRUE; @@ -6716,6 +6703,19 @@ load_repo_info(void) * Main */ +static const char usage[] = +"tig " TIG_VERSION " (" __DATE__ ")\n" +"\n" +"Usage: tig [options] [revs] [--] [paths]\n" +" or: tig show [options] [revs] [--] [paths]\n" +" or: tig blame [rev] path\n" +" or: tig status\n" +" or: tig < [git command output]\n" +"\n" +"Options:\n" +" -v, --version Show version and exit\n" +" -h, --help Show help message and exit"; + static void __NORETURN quit(int sig) {