/** @file File is ParseParameter class which is used to parse the validity of user's input args and standardize them. Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ package org.tianocore.context; public class ParseParameter { /** * check the validity of user's input args * @param args -- user's input * @return true or false **/ public static boolean checkParameter(String[] args) { if(args.length == 0){ HelpInfo.outputUsageInfo(); return false; } else { if( args[0].charAt(0) != '-' ){ HelpInfo.outputUsageInfo(); return false; } for(int i=0; i