From 60d05f83b320b1162ddf723a7dc9a57552b25492 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 13 Jul 2010 05:06:56 +0000 Subject: [PATCH] docs: show disabled commands in --help too for clarity --- Hledger/Cli/Options.hs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Hledger/Cli/Options.hs b/Hledger/Cli/Options.hs index e991bbe8e..f7cd9598d 100644 --- a/Hledger/Cli/Options.hs +++ b/Hledger/Cli/Options.hs @@ -35,14 +35,23 @@ help1 = " print - show transactions in ledger format\n" ++ " register - show transactions as a register with running balance\n" ++ " stats - show various statistics for a ledger\n" ++ + " vty - run a simple curses-style UI" ++ #ifdef VTY - " vty - run a simple curses-style UI\n" ++ + "\n" ++ +#else + " (DISABLED, install with -fvty)\n" ++ #endif + " web - run a simple web-based UI" ++ #if defined(WEB) || defined(WEB610) - " web - run a simple web-based UI\n" ++ + "\n" ++ +#else + " (DISABLED, install with -fweb or -fweb610)\n" ++ #endif + " chart - generate balances pie charts" ++ #ifdef CHART - " chart - generate balances pie chart\n" ++ + "\n" ++ +#else + " (DISABLED, install with -fchart)\n" ++ #endif " test - run self-tests\n" ++ "\n" ++