/*
 * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu)
 * Distributed under the MIT License.
 * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
 */

#include "window.h"
#include <iostream>
#include <string>

int main(int argc, char const* argv[])
{
    Window window;

    if (argc > 1) {
        std::string filename = argv[1];
        window.create(filename);
    } else {
        std::cout << "SFML Image Viewer (c) 2017" << std::endl;
        std::cout << std::endl;
        std::cout << "Usage: sfiv FILE" << std::endl;
    }

    return 0;
}

/*
 * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu)
 * Distributed under the MIT License.
 * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
 */

#include "window.h"
#include <string>

int main(int argc, char const* argv[])
{
    Window window;

    if (argc > 1) {
        std::string filename = argv[1];
        window.create(filename);
    } else {
        window.create();
    }

    return 0;
}

--- 
+++ 
@@ -5,6 +5,7 @@
  */
 
 #include "window.h"
+#include <iostream>
 #include <string>
 
 int main(int argc, char const* argv[])
@@ -15,7 +16,9 @@
         std::string filename = argv[1];
         window.create(filename);
     } else {
-        window.create();
+        std::cout << "SFML Image Viewer (c) 2017" << std::endl;
+        std::cout << std::endl;
+        std::cout << "Usage: sfiv FILE" << std::endl;
     }
 
     return 0;
Make application open only if file is provided
