When called with no input files, just write usage (as the Windows tool does).

Change-Id: I06ffe30b187db6db3cec38bb35af9da797ebca45
This commit is contained in:
Jan Holesovsky 2012-07-25 12:36:03 +02:00
parent e59334ffbb
commit 647c6886da

View file

@ -329,7 +329,8 @@ int main(int argc, char *argv[])
if (ddfFile == NULL)
{
cabLog(CABLOG_ERR, "No DDF file specified.");
return 1;
usage();
return 0;
}
cabLog(CABLOG_MSG, "=== Parsing directive file \"%s\"===", ddfFile);
@ -377,3 +378,5 @@ int main(int argc, char *argv[])
cabLog(CABLOG_MSG, "Cabinet file %s/%s created.", ddfVars.szCabPath, ddfVars.szCab);
return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */