mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Merge pull request #1596 from danielyxie/dev
fix autoc single letter flags
This commit is contained in:
commit
804bc25283
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user