X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..ea4f02c6acdf50fbc114ea9dc7e2a81f149ea8ca:/uip/flist.c diff --git a/uip/flist.c b/uip/flist.c index 0e2b1614..dac84d50 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -58,7 +58,7 @@ static struct swit switches[] = { #define VERSIONSW 13 { "version", 0 }, #define HELPSW 14 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } }; @@ -232,9 +232,11 @@ main(int argc, char **argv) (size_t) (maxfolders * sizeof(*foldersToDo))))) adios (NULL, "unable to reallocate folder name storage"); } - if (*cp == '+') - ++cp; - foldersToDo[numfolders++] = cp; + if (*cp == '+' || *cp == '@') { + foldersToDo[numfolders++] = + path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF); + } else + foldersToDo[numfolders++] = cp; } } @@ -276,7 +278,7 @@ main(int argc, char **argv) ScanFolders(); qsort(folders, nFolders, sizeof(struct Folder), (qsort_comp) CompareFolders); PrintFolders(); - done (0); + return done (0); } /*