From bd8c2a212f194c9295420cefea96f554605ead84 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Wed, 6 Aug 2014 20:47:13 -0400 Subject: [PATCH] update jsfmt readme help text --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b937e7..ab48da7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Usage ``` $ jsfmt --help Usage: - jsfmt [--no-format] [--diff|--list|--write] [--validate] [--rewrite PATTERN|--search PATTERN] [--json] [...] + jsfmt [--no-format] [--save-ast] [--diff|--list|--write] [--validate] [--rewrite PATTERN|--search PATTERN] [--json|--ast] [...] jsfmt (--version | --help) Options: @@ -31,6 +31,8 @@ Options: --no-format Do not format the input file(s) -w --write Overwrite the original file with jsfmt output -j --json Tell jsfmt that the file being parsed is json + -a --ast Tell jsfmt that the file being parsed is in JSON AST + --save-ast Output the resulting js in JSON AST format -r=PATTERN --rewrite PATTERN Rewrite rule (e.g., 'a.slice(b, len(a) -> a.slice(b)') -s=PATTERN --search PATTERN Search rule (e.g., 'a.slice') ```