Beispiel #1
0
 public OptionParser()
 {
     iOptions    = new List <Option>();
     iPosArgs    = new List <string>();
     iHelpOption = new OptionBool("-h", "--help", "show this help message and exit");
     AddOption(iHelpOption);
 }
Beispiel #2
0
        public OptionPageUpdates(IHelper aHelper)
            : base("Updates")
        {
            iAutoUpdate = new OptionBool("autoupdate", "Automatic update checks", "Perform automatic checks for updates", true);
            Add(iAutoUpdate);

            iBetaVersions = new OptionBool("beta", "Participate in beta program", "Include beta versions when checking for available updates", false);
            Add(iBetaVersions);

            iDevelopmentVersions = new OptionParser.OptionBool("-d", "--development", "Include development versions when checking for available updates");
            aHelper.OptionParser.AddOption(iDevelopmentVersions);

            iNightlyBuilds = new OptionParser.OptionBool("-n", "--nightly", "Include nightly builds when checking for available updates");
            aHelper.OptionParser.AddOption(iNightlyBuilds);
        }
Beispiel #3
0
 public OptionPagePrivacy(IHelper aHelper)
     : base("Privacy")
 {
     iOptionUsageData = new OptionBool("usagedata", "Send anonymous usage data", "Whether to send anonymous usage data for product improvement", true);
     Add(iOptionUsageData);
 }
 public OptionPageCrashDumper(string aTitle)
     : base(aTitle)
 {
     iAutoSend = new OptionBool("autosendcrashlog", "Auto send crash log", "Send crash reports automatically without prompting", false);
     Add(iAutoSend);
 }