Merge pull request #1596 from danielyxie/dev

fix autoc single letter flags
This commit is contained in:
hydroflame 2021-10-27 19:21:40 -04:00 committed by GitHub
commit 804bc25283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -322,7 +322,10 @@ export async function determineAllPossibilitiesForTabCompletion(
scripts: currServ.scripts.map((script) => script.filename),
txts: currServ.textFiles.map((txt) => txt.fn),
flags: (schema: any) => {
pos2 = schema.map((f: any) => "--" + f[0]);
pos2 = schema.map((f: any) => {
if (f[0].length === 1) return "-" + f[0];
return "--" + f[0];
});
try {
return flagFunc(schema);
} catch (err) {