|
|
@ -68,7 +68,7 @@ public abstract class ProxyCommandBase<T> : IConsoleCommand, ITransientDependenc |
|
|
var source = commandLineArgs.Options.GetOrNull(Options.Source.Short, Options.Source.Long); |
|
|
var source = commandLineArgs.Options.GetOrNull(Options.Source.Short, Options.Source.Long); |
|
|
var workDirectory = commandLineArgs.Options.GetOrNull(Options.WorkDirectory.Short, Options.WorkDirectory.Long) ?? Directory.GetCurrentDirectory(); |
|
|
var workDirectory = commandLineArgs.Options.GetOrNull(Options.WorkDirectory.Short, Options.WorkDirectory.Long) ?? Directory.GetCurrentDirectory(); |
|
|
var folder = commandLineArgs.Options.GetOrNull(Options.Folder.Long); |
|
|
var folder = commandLineArgs.Options.GetOrNull(Options.Folder.Long); |
|
|
var withoutContracts = commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Long); |
|
|
var withoutContracts = commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Short, Options.WithoutContracts.Long); |
|
|
|
|
|
|
|
|
return new GenerateProxyArgs(CommandName, workDirectory, module, url, output, target, apiName, source, folder, withoutContracts, commandLineArgs.Options); |
|
|
return new GenerateProxyArgs(CommandName, workDirectory, module, url, output, target, apiName, source, folder, withoutContracts, commandLineArgs.Options); |
|
|
} |
|
|
} |
|
|
@ -166,6 +166,7 @@ public abstract class ProxyCommandBase<T> : IConsoleCommand, ITransientDependenc |
|
|
|
|
|
|
|
|
public static class WithoutContracts |
|
|
public static class WithoutContracts |
|
|
{ |
|
|
{ |
|
|
|
|
|
public const string Short = "c"; |
|
|
public const string Long = "without-contracts"; |
|
|
public const string Long = "without-contracts"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|