Skip to content

Commit

Permalink
chore: allow aliases as full flags
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Feb 24, 2024
1 parent 239e904 commit 5d88f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/utils/parse-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export async function parseRawFlags(
const arg = raw_arg.slice(2);
const parts = arg.split('=');
const spelling = normalizeFlag(parts[0]);
const flag = spellings.get(spelling);
const flag = spellings.get(spelling) || aliases.get(spelling);
if (!flag) {
throw new Error(`Unknown flag: ${spelling}`);
}
Expand Down

0 comments on commit 5d88f44

Please sign in to comment.