show helptext when .nboard does not exist

This commit is contained in:
vulpine 2020-07-25 15:15:42 +00:00
parent ca4a1054ee
commit 2e3b61fbfd
1 changed files with 5 additions and 1 deletions

6
nboard
View File

@ -114,7 +114,11 @@ def main(stdscr):
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
try:
dExists = os.path.isfile(dataPath)
except:
dExists = False
if not dExists or len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
print("""
nboard is like yourworldoftext.com, except its in a terminal.