Browse Source

[cli] Improve directory setup in case the path is not a file path.

pull/914/head
Joao Matos 8 years ago
parent
commit
fbfd1e1b89
  1. 4
      src/CLI/CLI.cs

4
src/CLI/CLI.cs

@ -104,11 +104,11 @@ namespace CppSharp @@ -104,11 +104,11 @@ namespace CppSharp
{
try
{
string dir = Path.GetDirectoryName(arg);
string file = Path.GetFileNameWithoutExtension(arg);
options.OutputFileName = file;
var dir = Path.HasExtension(arg) ? Path.GetDirectoryName(arg) : Path.GetFullPath(arg);
options.OutputDir = dir;
options.OutputFileName = file;
}
catch(Exception e)
{

Loading…
Cancel
Save