makepackage icon indicating copy to clipboard operation
makepackage copied to clipboard

Add feature

Open patrickboateng opened this issue 1 year ago • 2 comments

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.

patrickboateng avatar Feb 19 '23 22:02 patrickboateng

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?

nyggus avatar Feb 20 '23 03:02 nyggus

I think this is also okay.

patrickboateng avatar Feb 20 '23 13:02 patrickboateng