tccmain: simplify option help
This commit is contained in:
parent
c31dc7aa0c
commit
a7fb00e887
1 changed files with 4 additions and 4 deletions
8
tcc.c
8
tcc.c
|
|
@ -41,10 +41,8 @@ static const char *deps_outfile;
|
||||||
static void help(void)
|
static void help(void)
|
||||||
{
|
{
|
||||||
printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001-2006 Fabrice Bellard\n"
|
printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001-2006 Fabrice Bellard\n"
|
||||||
"usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"
|
"Usage: tcc [options...] [-o outfile] [-c] infile(s)...\n"
|
||||||
" [-Wwarn] [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-soname name]\n"
|
" tcc [options...] -run infile [arguments...]\n"
|
||||||
" [-static] [infile1 infile2...] [-run infile args...]\n"
|
|
||||||
"\n"
|
|
||||||
"General options:\n"
|
"General options:\n"
|
||||||
" -v display current version, increase verbosity\n"
|
" -v display current version, increase verbosity\n"
|
||||||
" -c compile only - generate an object file\n"
|
" -c compile only - generate an object file\n"
|
||||||
|
|
@ -136,7 +134,9 @@ static const TCCOption tcc_options[] = {
|
||||||
{ "B", TCC_OPTION_B, TCC_OPTION_HAS_ARG },
|
{ "B", TCC_OPTION_B, TCC_OPTION_HAS_ARG },
|
||||||
{ "l", TCC_OPTION_l, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
{ "l", TCC_OPTION_l, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
||||||
{ "bench", TCC_OPTION_bench, 0 },
|
{ "bench", TCC_OPTION_bench, 0 },
|
||||||
|
#ifdef CONFIG_TCC_BACKTRACE
|
||||||
{ "bt", TCC_OPTION_bt, TCC_OPTION_HAS_ARG },
|
{ "bt", TCC_OPTION_bt, TCC_OPTION_HAS_ARG },
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_TCC_BCHECK
|
#ifdef CONFIG_TCC_BCHECK
|
||||||
{ "b", TCC_OPTION_b, 0 },
|
{ "b", TCC_OPTION_b, 0 },
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue