aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2010-09-08 19:13:36 +0200
committergrischka <grischka>2010-09-08 19:13:36 +0200
commita7fb00e887a2ef9372040a75c3d37b79971d9b21 (patch)
tree639fe152176dd3f86f3400d40dacaab83c668ec5 /tcc.c
parentc31dc7aa0c36e19e15cf41a0d2728e89ad339660 (diff)
downloadtinycc-a7fb00e887a2ef9372040a75c3d37b79971d9b21.tar.gz
tinycc-a7fb00e887a2ef9372040a75c3d37b79971d9b21.tar.bz2
tccmain: simplify option help
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcc.c b/tcc.c
index 136612e..da65e24 100644
--- a/tcc.c
+++ b/tcc.c
@@ -41,10 +41,8 @@ static const char *deps_outfile;
static void help(void)
{
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"
- " [-Wwarn] [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-soname name]\n"
- " [-static] [infile1 infile2...] [-run infile args...]\n"
- "\n"
+ "Usage: tcc [options...] [-o outfile] [-c] infile(s)...\n"
+ " tcc [options...] -run infile [arguments...]\n"
"General options:\n"
" -v display current version, increase verbosity\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 },
{ "l", TCC_OPTION_l, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
{ "bench", TCC_OPTION_bench, 0 },
+#ifdef CONFIG_TCC_BACKTRACE
{ "bt", TCC_OPTION_bt, TCC_OPTION_HAS_ARG },
+#endif
#ifdef CONFIG_TCC_BCHECK
{ "b", TCC_OPTION_b, 0 },
#endif