public final class CommandUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getProjectName(File inputDefFile)
Returns the name of the project for the given input definition file.
|
static IllegalArgumentException |
getUsageException(String detail,
Exception cause)
Returns an IllegalArgumentException reporting a command line error.
|
static String |
getVersion()
Returns a description of the current version.
|
static void |
throwMissingValue(String option)
Throws a IllegalArgumentException reporting a missing option value
|
static void |
throwUsageException(String detail)
Throws a IllegalArgumentException reporting a command line error.
|
static void |
throwUsageException(String detail,
Exception cause)
Throws a IllegalArgumentException reporting a command line error.
|
public static String getVersion()
public static String getProjectName(File inputDefFile)
public static void throwUsageException(String detail)
public static void throwUsageException(String detail, Exception cause)
public static IllegalArgumentException getUsageException(String detail, Exception cause)
public static void throwMissingValue(String option)
Copyright © 2024 The Cornutum Project. All rights reserved.