Skip to content

Commit

Permalink
Introduce a --setenv arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Oct 2, 2012
1 parent f2bc302 commit 4107818
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void usage(FILE *f)
" --rc-file|-c [arg] Use this file instead of ~/.rdmrc\n"
" --projects-file|-p [arg] Use this file as a projects file (default ~/.rtagsprojects)\n"
" --socket-file|-n [arg] Use this file for the server socket (default ~/.rdm)\n"
" --setenv|-e [arg] Set this environment variable (--setenv \"foobar=1\")\n"
" --thread-count|-j [arg] Spawn this many threads for thread pool\n");
}

Expand All @@ -73,6 +74,7 @@ int main(int argc, char** argv)
{ "define", required_argument, 0, 'D' },
{ "log-file", required_argument, 0, 'L' },
{ "no-clang-includepath", no_argument, 0, 'P' },
{ "setenv", required_argument, 0, 'e' },
{ "no-Wall", no_argument, 0, 'W' },
{ "append", no_argument, 0, 'A' },
{ "verbose", no_argument, 0, 'v' },
Expand Down Expand Up @@ -176,6 +178,9 @@ int main(int argc, char** argv)
case 'V':
options |= Server::NoValidate;
break;
case 'e':
putenv(optarg);
break;
case 'p':
projectsFile = Path::resolved(optarg);
break;
Expand Down

0 comments on commit 4107818

Please sign in to comment.