Skip to content

Commit 454800d

Browse files
committed
Add new properties to CommandArgument: type aliases banner
Closes gh-764
1 parent 5c3554b commit 454800d

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

grace-shell/src/main/groovy/org/grails/cli/profile/CommandArgument.groovy

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2022 the original author or authors.
2+
* Copyright 2014-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,8 @@ import groovy.transform.CompileStatic
2121
* Represents argument to a command
2222
*
2323
* @author Graeme Rocher
24-
* @since
24+
* @author Michael Yan
25+
* @since 4.0
2526
*/
2627
@CompileStatic
2728
class CommandArgument {
@@ -31,11 +32,26 @@ class CommandArgument {
3132
*/
3233
String name
3334

35+
/**
36+
* The type of the argument
37+
*/
38+
String type
39+
3440
/**
3541
* The description of the argument
3642
*/
3743
String description
3844

45+
/**
46+
* The aliases of the argument
47+
*/
48+
String aliases
49+
50+
/**
51+
* The banner of the argument
52+
*/
53+
String banner
54+
3955
/**
4056
* Whether the argument is required or not
4157
*/

0 commit comments

Comments
 (0)