Ejemplo n.º 1
0
        /// <summary>
        /// Parse command line arguments for Chimeric regions command
        /// </summary>
        /// <param name="args">Array of command line arguments.</param>
        private static void ChimericRegionOption(string[] args)
        {
            ChimericRegions      options = new ChimericRegions();
            CommandLineArguments parser  = new CommandLineArguments();

            // Add the parameters
            parser.Parameter(ArgumentType.Optional, "SAMInput", ArgumentValueType.Bool, "S", "Input is SAM format");
            parser.Parameter(ArgumentType.Optional, "Help", ArgumentValueType.Bool, "", "");

            try
            {
                parser.Parse(args, options);
            }
            catch (ArgumentParserException ex)
            {
                DisplayErrorMessage(ex.Message);
                DisplayErrorMessage(Resources.ChimericRegionsHelp);
                Environment.Exit(-1);
            }
            if (options.Help)
            {
                DisplayErrorMessage(Resources.ChimericRegionsHelp);
            }
            else
            {
                options.DisplayChimericRegions(args[0]);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Parse command line arguments for Chimeric regions command
        /// </summary>
        /// <param name="args">Array of command line arguments.</param>
        private static void ChimericRegionOption(string[] args)
        {
            ChimericRegions options = new ChimericRegions();

            if (options.Usage)
            {
                DisplayErrorMessage(Resources.ChimericRegionsHelp);
            }
            else
            {
                options.DisplayChimericRegions(args[0]);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Parse command line arguments for Chimeric regions command
        /// </summary>
        /// <param name="args">Array of command line arguments.</param>
        private static void ChimericRegionOption(string[] args)
        {
            ChimericRegions options = new ChimericRegions();
            CommandLineArguments parser = new CommandLineArguments();

            // Add the parameters
            parser.Parameter(ArgumentType.Optional, "SAMInput", ArgumentValueType.Bool, "S", "Input is SAM format");
            parser.Parameter(ArgumentType.Optional, "Help", ArgumentValueType.Bool, "", "");

            try
            {
                parser.Parse(args, options);
            }
            catch (ArgumentParserException ex)
            {
                DisplayErrorMessage(ex.Message);
                DisplayErrorMessage(Resources.ChimericRegionsHelp);
                Environment.Exit(-1);
            }
            if (options.Help)
            {
                DisplayErrorMessage(Resources.ChimericRegionsHelp);
            }
            else
            {
                options.DisplayChimericRegions(args[0]);
            }

        }