Skip to content

chore!: move from yargs to node:util#871

Merged
vladfrangu merged 11 commits intomasterfrom
chore/drop-yargs
Aug 6, 2025
Merged

chore!: move from yargs to node:util#871
vladfrangu merged 11 commits intomasterfrom
chore/drop-yargs

Conversation

@vladfrangu
Copy link
Member

@vladfrangu vladfrangu commented Aug 5, 2025

BREAKING CHANGE: The shorthand flag for --input-file in the call command has been changed from -if to -f.

Closes #833, by moving our argument parsing from yargs to the built-in one from nodejs. This does come with some caveats (specifically aliases like -if will be interpreted as setting the flags -i and -f (if both are defined) or as f as the value of the -i flag.).

For most use cases, there should be 0 difference in how flags and args are parsed and it should all work. From initial testing, even stdin input just worked

@vladfrangu vladfrangu requested a review from B4nan as a code owner August 5, 2025 12:46
@github-actions github-actions bot added this to the 120th sprint - Tooling team milestone Aug 5, 2025
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Aug 5, 2025
Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that's a lot of changes, this will need proper testing once the canary is released

}),
'input-file': Flags.string({
aliases: ['if'],
char: 'f',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a BC, should be noted somewhere

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... I'd add it to the commit description when we merge this

@vladfrangu vladfrangu changed the title chore: move from yargs to node:util chore!: move from yargs to node:util Aug 6, 2025
sorry past me, this is why you double check your double check
@vladfrangu vladfrangu merged commit 482d0b2 into master Aug 6, 2025
24 checks passed
@vladfrangu vladfrangu deleted the chore/drop-yargs branch August 6, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider moving from yargs to node:util parseArgs

2 participants