makepackage
makepackage copied to clipboard
Add feature
I suggest instead of showing an error message when makepackage
is invoked without any arguments, showing a help message indicating how to use the package will be quite appropriate.
I am not sure about that. An exception suggests that this is an error indeed. Showing a message does not suggest that. Having said that, I agree that the traditional full traceback in this case does not make much sense. The user does not need traceback at all. So, I'd vote for raising an exception but instead of showing the corresponding traceback, show just the exception (like below) plus a meaning message:
makepackage.makepackage.NoPackageNameError: Provide package name as the first CLI arguments
What do you think?
I think this is also okay.