From e4718c105bab855a24aaa9d514630df6b07095b8 Mon Sep 17 00:00:00 2001 From: panki27 Date: Sun, 22 Apr 2018 15:40:25 +0200 Subject: [PATCH] help param is 'help' instead of '?', see issue #2 --- README.md | 2 +- minebash | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4df5aaa..b68eaff 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,4 @@ chmod +x minebash - F: Place flag ## Command line options -See 'minebash ?' +See 'minebash help' diff --git a/minebash b/minebash index f713724..7743cbe 100755 --- a/minebash +++ b/minebash @@ -33,7 +33,7 @@ clWhite, clRed, clCyan, clBlue, clYellow, clGreen, clInverted = None, None, None difficulty = 'medium' -param_error = 'minebash: Invalid parameters. See \'minebash.py ?\' for help ' +param_error = 'minebash: Invalid parameters. See \'minebash help\' for help ' helpstr = '''Usage: minebash [easy|medium|hard] [width height minecount] Difficulty presets: @@ -52,7 +52,7 @@ Controls: if len(sys.argv) > 1: if len(sys.argv) == 2: #param is string like easy, hard - if sys.argv[1] == '?': + if sys.argv[1] == 'help': print(helpstr) sys.exit(0) if sys.argv[1] == 'easy': @@ -95,15 +95,6 @@ def setup_strings(colcount): headline = '┌' + "".join('───┬' for i in range(width-1)) + '───┐' midline = '├' + ''.join('───┼' for i in range(width-1)) + '───┤' tailline = '└' + ''.join('───┴' for i in range(width-1)) + '───┘' - #for i in range(colcount): - #if i == width-1: - #headline += '───┐' - #midline += '───┤' - #tailline += '───┘' - #else: - #headline += '───┬' - #midline += '───┼' - #tailline += '───┴' def endgame(msg=''): if msg != '':