added tests for newly enabled syntax

for --patch-from origin
and --filelist list

Also : removed some constrained syntax tests,
as the new argument parsing syntax is more permissive.

For example :
    zstd file -of dest
used to be disallowed.

It's now allowed, and understood as:
    zstd file -o dest -f
This commit is contained in:
Yann Collet
2020-07-17 13:31:15 -07:00
parent 7280c1dafa
commit 23941eec04
2 changed files with 17 additions and 10 deletions
+5 -1
View File
@@ -619,10 +619,14 @@ static int init_cLevel(void) {
argNb++; \
if (argNb >= argCount) { \
DISPLAY("error: missing command argument \n"); \
exit(1); \
CLEAN_RETURN(1); \
} \
ptr = argv[argNb]; \
assert(ptr != NULL); \
if (ptr[0]=='-') { \
DISPLAY("error: command cannot be separated from its argument by another command \n"); \
CLEAN_RETURN(1); \
} \
}
#define ZSTD_NB_STRATEGIES 9