Package org.eclipse.jgit.pgm

Examples of org.eclipse.jgit.pgm.CommandRef


  }

  @Override
  public int parseArguments(final Parameters params) throws CmdLineException {
    final String name = params.getParameter(0);
    final CommandRef cr = CommandCatalog.get(name);
    if (cr == null)
      throw new CmdLineException(MessageFormat.format(
          CLIText.get().notAJgitCommand, name));

    // Force option parsing to stop. Everything after us should
    // be arguments known only to this command and must not be
    // recognized by the current parser.
    //
    owner.stopOptionParsing();
    setter.addValue(cr.create());
    return 1;
  }
View Full Code Here


  }

  @Override
  public int parseArguments(final Parameters params) throws CmdLineException {
    final String name = params.getParameter(0);
    final CommandRef cr = CommandCatalog.get(name);
    if (cr == null)
      throw new CmdLineException(MessageFormat.format(
          CLIText.get().notAJgitCommand, name));

    // Force option parsing to stop. Everything after us should
    // be arguments known only to this command and must not be
    // recognized by the current parser.
    //
    owner.stopOptionParsing();
    setter.addValue(cr.create());
    return 1;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.pgm.CommandRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.