Closed flagarde closed 1 year ago
Allow to obtain the argc and argv everywhere in the program. Close #155. Maybe in the future we can do the same for envs but the args are more needed:
#include "cpp-terminal/args.hpp" #include <iostream> int main() { std::cout << "argc : " << Term::argc << std::endl; for(std::size_t i = 0; i != Term::argc; ++i) { std::cout << "argv[" << i << "] : *" << Term::argv[i] << "*" << std::endl; } return 0; }
On windows it returns utf-8 as it should !
Allow to obtain the argc and argv everywhere in the program. Close #155. Maybe in the future we can do the same for envs but the args are more needed:
On windows it returns utf-8 as it should !