diff options
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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]; |