Skip to content

Accept G, GB and GiB suffixes for options#4609

Open
Integral-Tech wants to merge 2 commits intofacebook:devfrom
Integral-Tech:memory-g-suffix
Open

Accept G, GB and GiB suffixes for options#4609
Integral-Tech wants to merge 2 commits intofacebook:devfrom
Integral-Tech:memory-g-suffix

Conversation

@Integral-Tech
Copy link

@Integral-Tech Integral-Tech commented Mar 6, 2026

Several options currently accept only K, KB, KiB, M, MB and MiB suffixes. This change adds support for G, GB and GiB so users can specify gigabyte values using the same suffix styles.

Closes: #4540

Copy link

@jlee303 jlee303 left a comment

Choose a reason for hiding this comment

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

Looking good, just a few suggestions, thanks for putting up a pr 😄

@Integral-Tech Integral-Tech changed the title Add G, GB and GiB suffix support for --memory option Accept G, GB and GiB suffixes for options Mar 7, 2026
@Integral-Tech Integral-Tech requested a review from jlee303 March 7, 2026 06:59
@Integral-Tech
Copy link
Author

@jlee303 I have just pushed new commits that include my latest changes :)

Copy link

@jlee303 jlee303 left a comment

Choose a reason for hiding this comment

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

lgtm! Left a small suggestion for additional test case :)

@Integral-Tech Integral-Tech force-pushed the memory-g-suffix branch 2 times, most recently from 66530ec to f403390 Compare March 10, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The --mamory option should support the G suffix.

2 participants