aboutsummaryrefslogtreecommitdiff
path: root/src/wixcop/CommandLine/HelpCommand.cs
blob: bfb784b02ef4e40005143d35b94213e7d2f9a6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.

namespace WixToolset.Tools.WixCop.CommandLine
{
    using System;
    using WixToolset.Extensibility.Data;

    internal class HelpCommand : ICommandLineCommand
    {
        public int Execute()
        {
            Console.WriteLine(" usage:  wixcop.exe sourceFile [sourceFile ...]");
            Console.WriteLine();
            Console.WriteLine("   -f       fix errors automatically for writable files");
            Console.WriteLine("   -nologo  suppress displaying the logo information");
            Console.WriteLine("   -s       search for matching files in current dir and subdirs");
            Console.WriteLine("   -set1<file> primary settings file");
            Console.WriteLine("   -set2<file> secondary settings file (overrides primary)");
            Console.WriteLine("   -indent:<n> indentation multiple (overrides default of 4)");
            Console.WriteLine("   -?       this help information");
            Console.WriteLine();
            Console.WriteLine("   sourceFile may use wildcards like *.wxs");

            return 0;
        }
    }
}