Clarify help function

This commit is contained in:
daniele 2019-09-16 18:36:45 +02:00
parent 2d50c7b158
commit ffea2abdb2
Signed by: fuxino
GPG Key ID: 6FE25B4A3EE16FDA
3 changed files with 10 additions and 3 deletions

View File

@ -17,7 +17,7 @@ install=${pkgname}.install
source=(git+https://github.com/Fuxino/${pkgname}.git
config)
sha256sums=('SKIP'
'd8b88cbb4e6d9cae68c1605496880065337484dff8ee4c06dce2578357e95574')
'22ef4a0e9356daf3cabe93299c7a04b6b7283b14e6f2c07d939e24027eedf144')
pkgver()
{

7
simple-backup.install Normal file
View File

@ -0,0 +1,7 @@
post_install() {
echo "An example configuration file is found in /etc/simple_backup/config."
}
post_upgrade() {
post_install
}

View File

@ -38,7 +38,7 @@ class Backup():
# Help function
def help_function(self):
print('simple_backup, version 1.4.2')
print('simple_backup, version 2.0.0')
print('')
print('Usage: {} [OPTIONS]'.format(argv[0]))
print('')
@ -54,7 +54,7 @@ class Backup():
print('-k, --keep NUMBER Specify the number of old backups to keep.')
print(' Default: keep all.')
print('-u, --user USER User performing the backup.')
print(' Default: current user.')
print(' Useful when running with "sudo"')
print('-s, --checksum Use the checksum rsync option to compare files')
print(' (MUCH slower).')
print('')