Ref T13676. With increased PHP8.1 strictness around null, it seems reasonable to add some convenience parsing to "PhutilArgumentParser".
Add a helper function for parsing integers.
Differential D21799
Add an ArgumentParser helper for integers epriestley on May 3 2022, 9:09 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Ref T13676. With increased PHP8.1 strictness around null, it seems reasonable to add some convenience parsing to "PhutilArgumentParser". Add a helper function for parsing integers. See next change. Tried these arguments: --count '' --count asdf --count 0 --count -3 --count 999999999999999999999999999999999999999999999234 --count 5 Got sensible parsing and appropriate feedback in all cases.
Diff Detail
|