Currently, we correct "bin/aphlict --start" into "bin/aphlict restart". When a command starts with "-", don't correct it since it's more far more likely a mistake (intended to be a flag or just not correct usage) than a typo.
Details
Details
Ran "bin/aphlict --start", "bin/aphlict restart", "bin/aphlict restatr".
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think a simpler implementation of this would just be "don't correct any input beginning with -" since even flags are passed to us with the leading - stripped, but all the changes are internal to the class anyway and I think this interacts with changes in the wilds branch of Arcanist so it will probably need to be touched more heavily once that moves forward again anyway.