Skip to content

Commit

Permalink
[#2145] add test
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed May 6, 2024
1 parent 6430401 commit 7737d84
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package picocli.codegen.docgen.manpage;

import org.junit.Test;
import picocli.CommandLine;

import static org.junit.Assert.*;

public class Issue2145 {

@CommandLine.Command(
name = "documentation",
description = "Command to generate CLI documentation",
subcommands = ManPageGenerator.class
)
static class Documentation {

}

@Test
public void testManPageGenAsSubcommand() {
int result = new CommandLine(new Documentation()).execute("gen-manpage", "-dout", "-v");
assertEquals(0, result);
}
}

0 comments on commit 7737d84

Please sign in to comment.