Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
range as a command
#8
for years, commands i create have arguments pattern that goes beyond what usual arg parsing tools handle. often args are just plain simple and an arg parsing tool is overkill. in other cases, it can't handle the arguments, like mixed + and - prefixes.

whether i let the stack trace be the error message or not depends on the audience. if that audience is myself or other python coders, i do use them. for users that would never understand code at all, i try to make an error message that explains to their level. sometimes i've found that arguments tell the error explanation the context to explain in. errors may, or may not, be the result of the user's doings. i sometimes try to tell them what they need to do.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
range as a command - by Skaperen - Aug-04-2020, 11:55 PM
RE: range as a command - by ndc85430 - Aug-05-2020, 05:51 AM
RE: range as a command - by Skaperen - Aug-05-2020, 10:52 PM
RE: range as a command - by ndc85430 - Aug-06-2020, 04:29 AM
RE: range as a command - by Skaperen - Aug-06-2020, 10:36 PM
RE: range as a command - by ndc85430 - Aug-07-2020, 05:49 AM
RE: range as a command - by Gribouillis - Aug-07-2020, 07:03 AM
RE: range as a command - by Skaperen - Aug-07-2020, 10:08 PM
RE: range as a command - by Gribouillis - Aug-08-2020, 06:27 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020