rage - print usage when the command line parameter is missing.

This commit is contained in:
Daniel Juyung Seo 2014-01-22 14:11:13 +09:00
parent 2e0659be1d
commit f2cb079642
1 changed files with 6 additions and 1 deletions

View File

@ -980,7 +980,12 @@ elm_main(int argc, char **argv)
int i;
Inf *inf;
if (argc <= 1) goto end;
if (argc <= 1)
{
printf("Usage: rage {file-name}\n");
goto end;
}
for (i = 1; i < argc; i++)
{
list = eina_list_append(list, eina_stringshare_add(argv[i]));