Closed pb-cdunn closed 3 years ago
Never mind. Forgot to change cmdName.
I guess a better help msg would be good though. :smile:
Hmm. It might be possible for me to put all the dispatchers into a Table
with some already-used slot protocol for such errors. "Already used" and "ambiguous call" are preeeeetty similar, though. So, I'm not sure the value add would be justified. To the extent it would add value, better messages from the Nim compiler itself seems higher impact. Good luck on your hackathon. :-)
Good point.
That happens when I add a single line:
`diff
--- src/nib.nim +++ src/nib.nim @@ -1,9 +1,11 @@ from nibpkg/compose import nil from nibpkg/refmers import nil +from nibpkg/mainLookup import nilwhen isMainModule: import cligen dispatchMulti( [compose.compose_variants, cmdName="compose"], [refmers.countRefKmers, cmdName="count"],