Named program barusu

This commit is contained in:
2021-12-09 23:56:47 +01:00
parent 84cd8bc83f
commit 6d5f3d0322

View File

@@ -76,11 +76,11 @@ if __name__ == '__main__':
exit(1) exit(1)
for option, value in options: for option, value in options:
if option in ("-h", "help"): if option in ("-h", "help"):
print("usage: <name> [opts]\n\ print("usage: barusu [opts]\n\
Options:\n\ Options:\n\
\t-h --help: show this\n\ \t-h --help: show this\n\
\t-d --backup-dir [directory]: set the directory for the backup/restoration (default is ~/.backups)\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") # todo: <name> \t-r --restore: run the restoration (from backupdir)\n")
exit() exit()
elif option in ("-d", "backup-dir"): elif option in ("-d", "backup-dir"):
backupdir = os.path.expanduser(value) backupdir = os.path.expanduser(value)