From c67b09f7219a06b728b15030d6c25a4710463e37 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 26 May 2016 23:40:02 -0400 Subject: [PATCH] timew: Moved more code inside the try block --- src/timew.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/timew.cpp b/src/timew.cpp index b28edbea..f2c8c0a8 100644 --- a/src/timew.cpp +++ b/src/timew.cpp @@ -43,25 +43,25 @@ int main (int argc, const char** argv) if (lightweightVersionCheck (argc, argv)) return status; - // Add entities so that command line tokens such as 'help' are recognized as - // commands. - CLI cli; - initializeEntities (cli); - - // Capture the args. - std::string commandLine; - for (int i = 0; i < argc; i++) - { - cli.add (argv[i]); - - if (i) - commandLine += " "; - - commandLine += quoteIfNeeded (argv[i]); - } - try { + // Add entities so that command line tokens such as 'help' are recognized as + // commands. + CLI cli; + initializeEntities (cli); + + // Capture the args. + std::string commandLine; + for (int i = 0; i < argc; i++) + { + cli.add (argv[i]); + + if (i) + commandLine += " "; + + commandLine += quoteIfNeeded (argv[i]); + } + // Scan command line. cli.analyze ();