-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-debuginfod][NFC] Switch to OptTable
Reviewed By: mysterymath Differential Revision: https://reviews.llvm.org/D151273
- Loading branch information
1 parent
a2684ac
commit 1610627
Showing
4 changed files
with
136 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include "llvm/Option/OptParser.td" | ||
|
||
class F<string name, string help> : Flag<["-"], name>, HelpText<help>; | ||
class FF<string name, string help>: Flag<["--"], name>, HelpText<help>; | ||
class S<string name, string meta, string help>: Separate<["-"], name>, HelpText<help>, MetaVarName<meta>; | ||
|
||
def help : FF<"help", "Display available options">; | ||
def : F<"h", "Alias for --help">, Alias<help>; | ||
def max_concurrency : | ||
S<"c", "<ulong>", "Maximum number of files to scan concurrently. " | ||
"If 0, use the hardware concurrency.">; | ||
def host_interface : S<"i", "<string>", "Host interface to bind to.">; | ||
def min_interval : | ||
S<"m", "<number>", "Minimum number of seconds to wait before an on-demand update can be" | ||
"triggered by a request for a buildid which is not in the collection.">; | ||
def port : S<"p", "<uint>", "Port to listen on. Set to 0 to bind to any available port.">; | ||
def scan_interval : | ||
S<"t", "<int>", "Number of seconds to wait between subsequent " | ||
"automated scans of the filesystem.">; | ||
def verbose_logging : F<"v", "Enable verbose logging.">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters