From 2c515f0de70ad675b5f5d25b6a496d67d8dc0463 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Mon, 10 Jan 2022 02:48:19 +0000 Subject: [PATCH] Fixed indentation --- click.cpp | 102 +++++++++++++++++++++++++------------------------- 1 files changed, 51 insertions(+), 51 deletions(-) diff --git a/click.cpp b/click.cpp index 31529e9..f373fce 100644 --- a/click.cpp +++ b/click.cpp @@ -13,64 +13,64 @@ void initialise() { - mapClick = {{"BUY", Buy}, {"SELL", Sell}, {"FLASH", Flash}, - {"b", Buy}, {"s", Sell}, {"f", Flash}, - {"B", Buy}, {"S", Sell}, {"F", Flash}}; + mapClick = {{"BUY", Buy}, {"SELL", Sell}, {"FLASH", Flash}, + {"b", Buy}, {"s", Sell}, {"f", Flash}, + {"B", Buy}, {"S", Sell}, {"F", Flash}}; } void usage() { - std::cout << "DESCRIPTION" << std::endl - << "Click trader using same algs" << std::endl - << std::endl - << "USAGE" << std::endl - << "\t-a product" << std::endl - << "\t-t click type (buy, sell, flash)" << std::endl - << "\t-p price" << std::endl - << "\t-v volume" << std::endl - << "\t-i id" << std::endl - << "Always need product, need side, price and volume for " - "adding/flash, need id for deleting" - << std::endl; + std::cout << "DESCRIPTION" << std::endl + << "Click trader using same algs" << std::endl + << std::endl + << "USAGE" << std::endl + << "\t-a product" << std::endl + << "\t-t click type (buy, sell, flash)" << std::endl + << "\t-p price" << std::endl + << "\t-v volume" << std::endl + << "\t-i id" << std::endl + << "Always need product, need side, price and volume for " + "adding/flash, need id for deleting" + << std::endl; } int main(int argc, char** argv) { - int c; - std::string product, id; - double price; - clickType click; - uint64_t volume; - initialise(); - if (argc == 1) { - usage(), exit(0); - } - while ((c = getopt(argc, argv, "a::t::p::v::i::")) != -1) { - switch (c) { - case 'a': - product = std::string(optarg); - break; - case 's': - click = mapClick[optarg]; - break; - case 'p': - price = std::stod(optarg); - break; - case 'v': - volume = std::stoll(optarg); - break; - case 'i': - id = std::string(optarg); - break; - case '?': - default: - usage(); - exit(0); + int c; + std::string product, id; + double price; + clickType click; + uint64_t volume; + initialise(); + if (argc == 1) { + usage(), exit(0); } - } - switch (click) { - case Buy: - case Sell: - case Flash:; - } + while ((c = getopt(argc, argv, "a::t::p::v::i::")) != -1) { + switch (c) { + case 'a': + product = std::string(optarg); + break; + case 's': + click = mapClick[optarg]; + break; + case 'p': + price = std::stod(optarg); + break; + case 'v': + volume = std::stoll(optarg); + break; + case 'i': + id = std::string(optarg); + break; + case '?': + default: + usage(); + exit(0); + } + } + switch (click) { + case Buy: + case Sell: + case Flash:; + } } -- Gitblit v1.9.3