package picocli.groovy

@Command(name = 'package-test-name22', separator = ';', version = 'package-test-version')
@PicocliScript2
import picocli.groovy.PicocliScript2
import picocli.CommandLine.Command
import org.junit.Test
import picocli.CommandLine

/**
 * Tests putting @Command annotations on the package declaration of a class.
 *
 * @author Remko Popma
 * @since 2.0
 */
@Test
public void testPackageAnnotation() {
    CommandLine commandLine = new CommandLine(this)
    assert "package-test-name22" == commandLine.commandName
}
