1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

if no source drectory given then exit quietly

This commit is contained in:
Kevin Glynn 2011-01-17 04:20:05 -06:00
parent 8b61151866
commit f9dde00431

View File

@ -111,7 +111,10 @@ namespace RusticiSoftware.Translator.CSharp
// Final argument is translation target
remArgs = p.Parse (args);
if (remArgs == null || remArgs.Count == 0)
// No work
Environment.Exit(0);
// Load .Net templates
foreach (string r in cfg.NetRoot)
doFile(r, ".xml", addNetTranslation, cfg.ExNetRoot);