show helptext when .nboard does not exist
This commit is contained in:
parent
ca4a1054ee
commit
2e3b61fbfd
1 changed files with 5 additions and 1 deletions
6
nboard
6
nboard
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue