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,