docs: Improve help message formatting and clarity
This commit is contained in:
parent
6bc4b56ba3
commit
a95a67f834
12
gtm
12
gtm
|
|
@ -222,10 +222,14 @@ def main(stdscr, filename):
|
|||
|
||||
def show_help():
|
||||
"""Display help information"""
|
||||
print("Usage: gtm filename")
|
||||
print(" gtm -v, --version (show version)")
|
||||
print(" gtm -h, --help (show this help)")
|
||||
print("\nA Git Time Machine for viewing file history.")
|
||||
print("A \"Git Time Machine\" for viewing file history.")
|
||||
print()
|
||||
print("Usage:")
|
||||
print("\tgtm FILENAME")
|
||||
print()
|
||||
print("Flags:")
|
||||
print("\t-v, --version\tshow version number")
|
||||
print("\t-h, --help\tshow this help")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) == 2:
|
||||
|
|
|
|||
Loading…
Reference in New Issue