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():
|
def show_help():
|
||||||
"""Display help information"""
|
"""Display help information"""
|
||||||
print("Usage: gtm filename")
|
print("A \"Git Time Machine\" for viewing file history.")
|
||||||
print(" gtm -v, --version (show version)")
|
print()
|
||||||
print(" gtm -h, --help (show this help)")
|
print("Usage:")
|
||||||
print("\nA Git Time Machine for viewing file history.")
|
print("\tgtm FILENAME")
|
||||||
|
print()
|
||||||
|
print("Flags:")
|
||||||
|
print("\t-v, --version\tshow version number")
|
||||||
|
print("\t-h, --help\tshow this help")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue