Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Args #155 #283

Merged
merged 22 commits into from
Aug 2, 2023
Merged

Args #155 #283

merged 22 commits into from
Aug 2, 2023

Conversation

flagarde
Copy link
Collaborator

@flagarde flagarde commented Jul 29, 2023

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 !

@flagarde flagarde changed the title Args Args #155 Jul 29, 2023
@flagarde flagarde merged commit b8661e3 into jupyter-xeus:master Aug 2, 2023
284 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add argument handling and processing
1 participant