diff options
Diffstat (limited to 'src/luma/arghandl.cc')
-rw-r--r-- | src/luma/arghandl.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/luma/arghandl.cc b/src/luma/arghandl.cc index 70b9ae6..f9f08c0 100644 --- a/src/luma/arghandl.cc +++ b/src/luma/arghandl.cc @@ -1,14 +1,12 @@ # include <cstdio> # include <luma.hh> # include <string> -# include <vector> using namespace std::literals::string_literals; void luma::arghandl(int const argc,char const * * argv) { - std::vector<std::basic_string<char>> args; for(int pos = 0x1;pos < argc; ++pos) { - args.push_back(argv[pos]); - } - for(std::basic_string<char> arg : args) { - std::printf("Got argument \"%s\".\u000A",arg.c_str()); + std::string arg = argv[pos]; + if(pos == 0x1) { + this->lumafile = arg; + } } } |