Reformatted the print statement in the help

This commit is contained in:
2021-12-10 21:09:33 +01:00
parent ece3938ca8
commit 08f78a92e8

View File

@@ -109,10 +109,10 @@ if __name__ == '__main__':
for option, value in options:
if option in ("-h", "--help"):
print("usage: barusu [opts]\n"
"Options:\n"
"\t-h --help: show this\n"
"\t-d --backup-dir [directory]: set the directory for the backup/restoration (default is ~/.backups)\n"
"\t-r --restore: run the restoration (from backupdir)\n")
"Options:\n"
"\t-h --help: show this\n"
"\t-d --backup-dir [directory]: set the directory for the backup/restoration (default is ~/.backups)\n"
"\t-r --restore: run the restoration (from backupdir)\n")
exit()
elif option in ("-d", "--backup-dir"):
backupdir = os.path.expanduser(value)