From f7f565c82bef3bd01b38349386291a815c71e718 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 9 Aug 2013 20:44:02 +0100 Subject: [PATCH] Add `--out-file/--output-file` output option. Refs saltstack/salt-cloud#713. --- salt/utils/parsers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py index 04e4b7e0bc..b44f4da911 100644 --- a/salt/utils/parsers.py +++ b/salt/utils/parsers.py @@ -800,6 +800,12 @@ class OutputOptionsMixIn(object): 'Negative values disables indentation. Only applicable in ' 'outputters that support indentation.') ) + group.add_option( + '--out-file', '--output-file', + dest='output_file', + default=None, + help='Write the output to the specified file' + ) group.add_option( '--no-color', '--no-colour', default=False,