1 include "llvm/Option/OptParser.td"
3 def help : Flag<["-", "--"], "help">;
4 def h : Flag<["-"], "h">, Alias<help>;
6 def version : Flag<["-", "--"], "version">,
7 HelpText<"Print the version and exit.">;
10 : MultiArg<["-", "--"], "segalign", 2>,
11 HelpText<"Specifies the segment alignment for the specified "
12 "architecture when creating a universal binary file. The "
13 "alignment is a hexadecimal number that is a power of 2.">;
16 : MultiArg<["-", "--"], "arch", 2>,
17 HelpText<"Specifies the architecture and the corresponding input file">;
19 def action_group : OptionGroup<"action group">;
22 : Option<["-", "--"], "verify_arch", KIND_REMAINING_ARGS>,
25 "Verify that the specified arch_types are present in the input file">;
27 def archs : Option<["-", "--"], "archs", KIND_FLAG>,
29 HelpText<"Display the arch_types present in the input file">;
31 def info : Option<["-", "--"], "info", KIND_FLAG>,
33 HelpText<"Display descriptions of each input file including "
34 "filename and arch_types. Groups universal binaries "
35 "together followed by thin files">;
37 def thin : Option<["-", "--"], "thin", KIND_SEPARATE>,
39 HelpText<"Create a thin output file of specified arch_type from the "
40 "fat input file. Requires -output option">;
42 def create : Option<["-", "--"], "create", KIND_FLAG>,
44 HelpText<"Create a universal binary output file from the input "
45 "files. Requires -output option">;
48 : MultiArg<["-", "--"], "replace", 2>,
50 HelpText<"Replace the specified arch type with the contents of the "
51 "input_file in a universal binary. Requires -output option">;
53 def output : Option<["-", "--"], "output", KIND_SEPARATE>,
54 HelpText<"Create output file with specified name">;
55 def o : JoinedOrSeparate<["-"], "o">, Alias<output>;