コード例 #1
0
ファイル: Command.java プロジェクト: plutext/basex
 /**
  * Returns the specified command option.
  *
  * @param typ options enumeration
  * @param <E> token type
  * @return option
  */
 protected final <E extends Enum<E>> E getOption(final Class<E> typ) {
   final E e = getOption(args[0], typ);
   if (e == null) error(UNKNOWN_TRY_X, args[0]);
   return e;
 }