Initial work on #26

This commit is contained in:
Hackerpilot 2013-10-14 01:09:35 +00:00
parent 2635ec5c60
commit 7fd5fca74d
2 changed files with 9 additions and 2 deletions

View File

@ -40,12 +40,13 @@ int main(string[] args)
bool help;
bool shutdown;
bool clearCache;
bool symbolLocation;
try
{
getopt(args, "cursorPos|c", &cursorPos, "I", &importPaths,
"port|p", &port, "help|h", &help, "shutdown", &shutdown,
"clearCache", &clearCache);
"clearCache", &clearCache, "symbolLocation", &symbolLocation);
}
catch (Exception e)
{
@ -176,6 +177,10 @@ Options:
--shutdown
Instructs the server to shut down.
--symbolLocation
Get the file name and position that the symbol at the cursor location
was defined.
-IPATH
Instructs the server to add PATH to its list of paths searced for
imported modules.

View File

@ -108,7 +108,9 @@ enum RequestKind : ubyte
/// Add import directory to server
addImport,
/// Shut down the server
shutdown
shutdown,
/// Get declaration location of given symbol
symbolLocation
}
/**