public void appendFlag(final @NonNull CommandFlagParser<?> flagParser) {
            this.builder.append(this.optionalPrefix());

            final Iterator<CommandFlag<?>> flagIterator = flagParser
                    .flags()
                    .iterator();

            while (flagIterator.hasNext()) {
                final CommandFlag<?> flag = flagIterator.next();
                this.appendName(String.format("--%s", flag.name()));

                if (flag.commandComponent() != null) {
                    this.builder.append(' ');
                    this.builder.append(this.optionalPrefix());
                    this.appendName(flag.commandComponent().name());
                    this.builder.append(this.optionalSuffix());
                }

                if (flagIterator.hasNext()) {
                    this.appendBlankSpace();
                    this.appendPipe();
                    this.appendBlankSpace();
                }
            }

            this.builder.append(this.optionalSuffix());
        }
Appends a flag argument

@param flagParser flag parser
cloud-core/src/main/java/org/incendo/cloud/syntax/StandardCommandSyntaxFormatter.java