]> git.armaanb.net Git - gen-shell.git/blobdiff - src/prompt.cpp
added argument parsing with Sarge
[gen-shell.git] / src / prompt.cpp
index 5b2e0487ae0284f95d7beccfcabbd2504c7e35e7..493425a9a6b03854932b0f7f2b23f67a0dad0b41 100644 (file)
 #include <vector>
 #include <string>
 
-static std::vector <std::string> contexts;
+////////////////////////////////////////////////////////////////////////////////
 
+static std::vector <std::string> contexts;
 std::string composeContexts (bool pretty = false);
 
-////////////////////////////////////////////////////////////////////////////////
 int promptClear ()
 {
   contexts.clear ();
   return 0;
 }
 
-////////////////////////////////////////////////////////////////////////////////
 int promptRemove ()
 {
   if (contexts.size ())
@@ -49,6 +48,7 @@ int promptRemove ()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+
 int promptAdd (const std::string& context)
 {
   contexts.push_back (context);
@@ -56,6 +56,7 @@ int promptAdd (const std::string& context)
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+
 std::string promptCompose ()
 {
   return "% ";