KO
|
EN
gitlite — search
Search
#python
#golang
#docker
#javascript
#python3
#node
#hacktoberfest
#nodejs
#deep-learning
#pytorch
#api-client
#css
UnityOptions
★ 139
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
angular-7-registration-login-example
:
Angular 7 User Registration and Login Example
hopOn
:
A car rental flutter application using firebase and google maps API
carla-driving-rl-agent
:
Code for the paper "Reinforced Curriculum Learning for Autonomous Driving in CARLA" (ICIP 2021)
SwiftQRCodeScanner
:
An easy QR code reader for iOS written in Swift
ingress-merge
:
Merge Ingress Controller for Kubernetes
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
UnityOptions
?
Download (.md)
# UnityOptions A library to help make command line argument parsing easy ``` public static void Main(string[] args) { if (!Options.InitAndSetup(args)) return; ... Do stuff ... } [ProgramOptions] public static class Options { [HelpDetails("This is the first option")] public static string SomeValue; [HelpDetails("This is the first option")] public static string AnotherValue; public static void SetToDefaults() { } public static string NameFor(string fieldName) { return OptionsParser.OptionNameFor(typeof(Options), fieldName); } public static bool InitAndSetup(string[] args) { SetToDefaults(); if (OptionsParser.HelpRequested(args)) { OptionsParser.DisplayHelp(typeof(Program).Assembly, false); return false; } var unknownArgs = OptionsParser.Prepare(args, typeof(Program).Assembly, false).ToList(); if (unknownArgs.Count > 0) { Console.WriteLine("Unknown arguments : "); foreach (var remain in unknownArgs) { Console.WriteLine("\t {0}", remain); } return false; } ValidateArguments(); return true; } } ```