1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-25 06:07:40 +00:00

Update Usage: ordering in backups.

This commit is contained in:
William Melody 2020-06-08 09:49:36 -07:00
parent bd7edba09b
commit 39a182b47e
2 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@ alias hosts="hosts --auto-sudo"
Usage: Usage:
hosts [<search string>] hosts [<search string>]
hosts add <ip> <hostname> [<comment>] hosts add <ip> <hostname> [<comment>]
hosts backups [create | [compare | delete | restore | show] <filename>] hosts backups [create | (compare | delete | restore | show) <filename>]
hosts block <hostname>... hosts block <hostname>...
hosts completions (check | install [-d | --download] | uninstall) hosts completions (check | install [-d | --download] | uninstall)
hosts disable (<ip> | <hostname> | <search string>) hosts disable (<ip> | <hostname> | <search string>)

6
hosts
View File

@ -473,7 +473,7 @@ A program for managing host file entries.
Usage: Usage:
${_ME} [<search string>] ${_ME} [<search string>]
${_ME} add <ip> <hostname> [<comment>] ${_ME} add <ip> <hostname> [<comment>]
${_ME} backups [create | [compare | delete | restore | show] <filename>] ${_ME} backups [create | (compare | delete | restore | show) <filename>]
${_ME} block <hostname>... ${_ME} block <hostname>...
${_ME} completions (check | install [-d | --download] | uninstall) ${_ME} completions (check | install [-d | --download] | uninstall)
${_ME} disable (<ip> | <hostname> | <search string>) ${_ME} disable (<ip> | <hostname> | <search string>)
@ -613,16 +613,16 @@ add() {
desc "backups" <<HEREDOC desc "backups" <<HEREDOC
Usage: Usage:
${_ME} backups ${_ME} backups
${_ME} backups compare <filename>
${_ME} backups create ${_ME} backups create
${_ME} backups compare <filename>
${_ME} backups delete <filename> ${_ME} backups delete <filename>
${_ME} backups restore <filename> [--skip-backup] ${_ME} backups restore <filename> [--skip-backup]
${_ME} backups show <filename> ${_ME} backups show <filename>
Subcommands: Subcommands:
backups List available backups. backups List available backups.
backups compare Compare a backup file with the current hosts file.
backups create Create a new backup of the hosts file. backups create Create a new backup of the hosts file.
backups compare Compare a backup file with the current hosts file.
backups delete Delete the specified backup. backups delete Delete the specified backup.
backups restore Replace the contents of the hosts file with a backups restore Replace the contents of the hosts file with a
specified backup. The hosts file is automatically specified backup. The hosts file is automatically