Closed xsteve closed 3 years ago
Hi, that's a common problem (feature =P) of all CLI tools and the solution is equally common:
Use a --
to indicate that all subsequent arguments are not flags
tl prioritize -- -3 1a64
Since this is so common, I'm not sure if changing it would be an improvement or just a surprising behavior …
Thanks for your quick response. This work-around solves the problem for me. However from a CLI perspective it is surprising that negative arguments are handled in a different way than positive arguments: tl prioritize 3 1a64 tl prioritize -- -3 1a64
Example session:
% tl prioritize -3 1a64 Invalid option `-3'
Did you mean this? -h
Usage: tasklite prioritize VALUE TASK_ID ... Adjust priority of specified tasks