1include "llvm/Option/OptParser.td" 2 3def help : Flag<["-", "--"], "help">; 4def h : Flag<["-"], "h">, Alias<help>; 5 6def version : Flag<["-", "--"], "version">, 7 HelpText<"Print the version and exit.">; 8 9def segalign 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.">; 14 15def arch 16 : MultiArg<["-", "--"], "arch", 2>, 17 HelpText<"Specifies the architecture and the corresponding input file">; 18 19def action_group : OptionGroup<"action group">; 20 21def verify_arch 22 : Option<["-", "--"], "verify_arch", KIND_REMAINING_ARGS>, 23 Group<action_group>, 24 HelpText< 25 "Verify that the specified arch_types are present in the input file">; 26 27def archs : Option<["-", "--"], "archs", KIND_FLAG>, 28 Group<action_group>, 29 HelpText<"Display the arch_types present in the input file">; 30 31def info : Option<["-", "--"], "info", KIND_FLAG>, 32 Group<action_group>, 33 HelpText<"Display descriptions of each input file including " 34 "filename and arch_types. Groups universal binaries " 35 "together followed by thin files">; 36 37def thin : Option<["-", "--"], "thin", KIND_SEPARATE>, 38 Group<action_group>, 39 HelpText<"Create a thin output file of specified arch_type from the " 40 "fat input file. Requires -output option">; 41 42def extract : Option<["-", "--"], "extract", KIND_SEPARATE>, 43 Group<action_group>, 44 HelpText<"Create a universal output file containing only the specified " 45 "arch_type from the fat input file. Requires -output option">; 46 47def create : Option<["-", "--"], "create", KIND_FLAG>, 48 Group<action_group>, 49 HelpText<"Create a universal binary output file from the input " 50 "files. Requires -output option">; 51 52def replace 53 : MultiArg<["-", "--"], "replace", 2>, 54 Group<action_group>, 55 HelpText<"Replace the specified arch type with the contents of the " 56 "input_file in a universal binary. Requires -output option">; 57 58def output : Option<["-", "--"], "output", KIND_SEPARATE>, 59 HelpText<"Create output file with specified name">; 60def o : JoinedOrSeparate<["-"], "o">, Alias<output>; 61