//main.cpp
int main(int argc, char *argv[]) {
go(argc, argv);
//you probably want to pass argc as well so you know the length of argv
...
}
//--------------------------------------------------------------------------
//go.h
void go(int argc, char *argv[]) {
...
}