Add test for alias with single string value

This commit is contained in:
Christopher Brown
2015-12-29 17:12:20 -06:00
parent 5974b1be29
commit 57888a3a47
+4 -1
View File
@@ -19,6 +19,9 @@ opts.boolean = strArr;
opts.alias = {
foo: strArr
};
opts.alias = {
foo: str
};
opts.default = {
foo: str
};
@@ -29,7 +32,7 @@ opts.unknown = (arg: string) => {
if(/xyz/.test(arg)){
return true;
}
return false;
};
opts.stopEarly = true;