From 83bb5173127ea97624c74aacf1d04f2ea535c994 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 7 Jun 2020 14:49:59 -0700 Subject: [PATCH] Update help and README.md for `subcommands`. --- README.md | 31 ++++++++++++++++--------------- hosts | 1 + 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 815cad7..6e08b87 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ alias hosts="hosts --auto-sudo" Usage: hosts [] hosts add [] - hosts backups [create | (compare | delete | restore | show) ] + hosts backups [create | [compare | delete | restore | show] ] hosts block ... hosts completions (check | install [-d | --download] | uninstall) hosts disable ( | | ) @@ -341,6 +341,7 @@ Usage: hosts list [enabled | disabled | ] hosts search hosts show ( | | ) + hosts subcommands [--raw] hosts remove ( | | ) [--force] hosts unblock ... hosts --auto-sudo @@ -375,7 +376,6 @@ hosts help addbackupsblock • - commandscompletionsdisabledisabled • @@ -388,6 +388,7 @@ hosts help removesearchshow • + subcommandsunblockversion

@@ -470,19 +471,6 @@ Exit status: - [jmdugan/blocklists](https://github.com/jmdugan/blocklists) - [notracking/hosts-blocklists](https://github.com/notracking/hosts-blocklists) -### `hosts commands` - -```text -Usage: - hosts commands [--raw] - -Options: - --raw Display the command list without formatting. - -Description: - Display the list of available commands. -``` - ### `hosts completions` ```text @@ -633,6 +621,19 @@ Exit status: 1 Invalid parameters or entry not found. ``` +### `hosts subcommands` + +```text +Usage: + hosts subcommands [--raw] + +Options: + --raw Display the subcommands list without formatting. + +Description: + Display the list of available subcommands. +``` + ### `hosts unblock` ```text diff --git a/hosts b/hosts index 68925f1..8a8a28f 100755 --- a/hosts +++ b/hosts @@ -434,6 +434,7 @@ Usage: ${_ME} list [enabled | disabled | ] ${_ME} search ${_ME} show ( | | ) + ${_ME} subcommands [--raw] ${_ME} remove ( | | ) [--force] ${_ME} unblock ... ${_ME} --auto-sudo