Package org.harctoolbox.cmdline
Class CmdUtils
java.lang.Object
org.harctoolbox.cmdline.CmdUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkForOption
(String functionName, List<String> args) static String
execute
(Class<? extends CmdLineProgram> clazz, String[] args) static String
restoreStdErr
(ByteArrayOutputStream errBytes) static String[]
shellSplit
(String string) static ByteArrayOutputStream
-
Method Details
-
checkForOption
- Throws:
UsageException
-
shellSplit
-
execute
-
storeStdErr
-
restoreStdErr
-