logger = logging.getLogger(__name__)
+USAGE = """
+Punch usage:
+punch <command> <...args>
+Available commands: daemon, help, in, out, pop, query, service, to, undo
+List additional command info with: punch help <command>
+"""
+
def col_str_tuple(col):
if len(col) == 4:
return (int(col[1]*2, 16),
def print_usage(command: Optional[str] = None):
if command is None:
- print("Punch usage:")
- print("punch <command> <...args>")
- print("Available commands: daemon, help, in, out, pop, query, service, to, undo")
- print("List additional command info with: punch help <command>")
+ print(USAGE)
else:
print("No usage info for", command)