Skip to content

Method SubCommand With Return Value #1803

Answered by remkop
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I see, the examples in the manual all return void.
Thanks for raising that. I will change one of them to return int.

If you return an int from your @Command-annotated method, that will be the exit code of that command.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by remkop
Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@remkop
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant