public final class EchoOptionSets extends Object
echo
command with the
the following options:
-n | --noNewline | Do not print the trailing newline character(s). |
This class serves as entry point to every possible set of echo
options
defined as an enum constant. With this explicit expansion of all possible
option combinations, options can be passed to the command in a very compact
form, such as:
echo(Echo.Options.n, ...);
Modifier and Type | Field and Description |
---|---|
static EchoOptionSets |
INSTANCE
The singleton instance.
|
EchoOptionSet_n |
n
Option
"-n" : Do not print the trailing newline character(s). |
EchoOptionSet_n |
noNewline
Option
"--noNewline" : Do not print the trailing newline character(s). |
Constructor and Description |
---|
EchoOptionSets() |
public static final EchoOptionSets INSTANCE
public final EchoOptionSet_n n
"-n"
: Do not print the trailing newline character(s).
The option "-n"
is equivalent to the "--
noNewline
"
option.
public final EchoOptionSet_n noNewline
"--noNewline"
: Do not print the trailing newline character(s).
The option "--noNewline"
is equivalent to the "-
n
"
option.
public EchoOptionSets()
Copyright © 2024. All rights reserved.