mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
fix autoc single letter flags
This commit is contained in:
parent
f92db3b8f8
commit
6835cbaa26
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