summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-01 03:44:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-01 03:44:42 +0000
commit16cb024a823112f4f2360f6123492bcefd8f74f8 (patch)
tree3bf081084c593ab9de28118bc0ab7e02d10338f8 /main.cc
parentabe98b8f8932038f9dcd671014a5d51a8b0fa0b8 (diff)
downloadfork-ledger-16cb024a823112f4f2360f6123492bcefd8f74f8.tar.gz
fork-ledger-16cb024a823112f4f2360f6123492bcefd8f74f8.tar.bz2
fork-ledger-16cb024a823112f4f2360f6123492bcefd8f74f8.zip
*** empty log message ***
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/main.cc b/main.cc
index 2b1b086a..7f3aa748 100644
--- a/main.cc
+++ b/main.cc
@@ -142,7 +142,14 @@ int main(int argc, char *argv[])
commodity * usd = new commodity("$", true, false, true, false, 2);
main_ledger.commodities.insert(commodities_entry("USD", usd));
+ // Read the command word
+
+ const std::string command = argv[optind];
+
#ifdef HUQUQULLAH
+ if (command == "register")
+ compute_huquq = false;
+
if (compute_huquq) {
new commodity("H", true, true, true, false, 2);
new commodity("mithqal", false, true, true, false, 1);
@@ -154,15 +161,6 @@ int main(int argc, char *argv[])
}
#endif
- // Read the command word
-
- const std::string command = argv[optind];
-
-#ifdef HUQUQ_CATEGORIES
- if (command == "register")
- compute_huquq = false;
-#endif
-
// Parse the ledger
char buf[32];