help param is 'help' instead of '?', see issue #2

master
panki27 7 years ago
parent 6f39895722
commit e4718c105b

@ -28,4 +28,4 @@ chmod +x minebash
- F: Place flag - F: Place flag
## Command line options ## Command line options
See 'minebash ?' See 'minebash help'

@ -33,7 +33,7 @@ clWhite, clRed, clCyan, clBlue, clYellow, clGreen, clInverted = None, None, None
difficulty = 'medium' 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] helpstr = '''Usage: minebash [easy|medium|hard] [width height minecount]
Difficulty presets: Difficulty presets:
@ -52,7 +52,7 @@ Controls:
if len(sys.argv) > 1: if len(sys.argv) > 1:
if len(sys.argv) == 2: #param is string like easy, hard if len(sys.argv) == 2: #param is string like easy, hard
if sys.argv[1] == '?': if sys.argv[1] == 'help':
print(helpstr) print(helpstr)
sys.exit(0) sys.exit(0)
if sys.argv[1] == 'easy': if sys.argv[1] == 'easy':
@ -95,15 +95,6 @@ def setup_strings(colcount):
headline = '┌' + "".join('───┬' for i in range(width-1)) + '───┐' headline = '┌' + "".join('───┬' for i in range(width-1)) + '───┐'
midline = '├' + ''.join('───┼' for i in range(width-1)) + '───┤' midline = '├' + ''.join('───┼' for i in range(width-1)) + '───┤'
tailline = '└' + ''.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=''): def endgame(msg=''):
if msg != '': if msg != '':

Loading…
Cancel
Save