Put back colors and result statuses into the command-line help.

This commit is contained in:
Andrew Hamilton 2016-01-29 19:56:58 +00:00
parent fb831607e4
commit 4040b5c807
2 changed files with 8 additions and 3 deletions

View file

@ -14,6 +14,7 @@
 │
│Usage:  │
│ vigil [options] <root_path>  │
│ vigil -h | --help  │
 │
│Example:  │
│ # vigil my_project  │
@ -27,7 +28,7 @@
d, c, j, k, f, v or arrow keys or m │
D, C, J, K, F, V or page up, page d │
│ Scroll the result pane.  │
t - Turn the result pane to portrai 
t - Turn the result pane to portrai
l - Show the activity log. (toggle) │
n - Move to the next issue. │
N - Move to the next issue of the c │
@ -35,6 +36,5 @@
p - Pause work. (toggle) │
s - Change the appearance of result │
q - Quit. │
│ │
  │
└──────────────────────────────────────┘

7
vigil
View file

@ -20,6 +20,7 @@ The reports are cached in a directory ".vigil" under the target directory.
Usage:
vigil [options] <root_path>
vigil -h | --help
Example:
# vigil my_project
@ -1069,7 +1070,11 @@ def manage_cache(root_path):
if __name__ == "__main__":
arguments = docopt.docopt(__doc__.replace("*", ""))
arguments = docopt.docopt(__doc__.replace("*", ""), help=False)
show_help = arguments["--help"]
if show_help:
print(_get_help_text())
sys.exit(0)
root_path = os.path.abspath(arguments["<root_path>"])
is_sandboxed = not arguments["--no-sandbox"]
if is_sandboxed: