2121 *
2222 * Contributors:
2323 * Ed Seidewitz, MDS
24- * Ivan Gomes
25- * Hisashi Miyashita
24+ * Zoltan Ujhelyi, MDS
25+ * Ivan Gomes, Twingineer
26+ * Hisashi Miyashita, Mgnite
2627 *
2728 *******************************************************************************/
2829
3839
3940public class SysMLInteractiveHelp {
4041
41-
4242 private static final String GENERAL_HELP_STRING_PREFIX =
4343 "The following SysML v2 magic commands are available.\n "
4444 + "For help on a specific command, use \" %help <COMMAND>\" or \" %<cmd> -h\" .\n \n "
@@ -78,7 +78,7 @@ public class SysMLInteractiveHelp {
7878 + " JSON\t \t Complete JSON representation of the tree\n " ;
7979
8080 private static final String PUBLISH_HELP_SHORT_STRING =
81- "%publish\t Publish to the repository the modele elements rooted in a named element" ;
81+ "%publish\t Publish to the repository the model elements rooted in a named element" ;
8282 private static final String PUBLISH_HELP_STRING =
8383 "Usage: %publish [-d] [--project=<PROJECT NAME>] [--branch=<BRANCH NAME>] <NAME>\n \n "
8484 + "Publish the model elements rooted in <NAME> to the repository. <NAME> must be fully qualified.\n "
@@ -92,7 +92,7 @@ public class SysMLInteractiveHelp {
9292
9393
9494 private static final String VIZ_HELP_SHORT_STRING =
95- "%viz\t \t Visualize the name model elements" ;
95+ "%viz\t \t Visualize the named model elements" ;
9696 private static final String VIZ_HELP_STRING =
9797 "Usage: %viz [--view=<VIEW>] [--style=<STYLE>...] <NAME> [<NAME>...]\n \n "
9898 + "Visualize model elements of <NAME>(s). <NAME>s must be fully qualified.\n \n "
@@ -134,29 +134,30 @@ public class SysMLInteractiveHelp {
134134 + "Save a file containing the complete JSON representation of the abstract syntax tree rooted in <NAME>.\n "
135135 + "<NAME> must be fully qualified.\n " ;
136136
137- private static final String LOAD_HELP_SHORT_STRING = "%load\t \t Loads a model from the repository" ;
137+ private static final String LOAD_HELP_SHORT_STRING = "%load\t \t Load models from the repository" ;
138138 private static final String LOAD_HELP_STRING =
139- "Usage: %load [--id=<PROJECT ID] [--name=<NAME>] [--branch=<BRANCH_NAME>] [<NAME>]\n \n "
140- + "Download previously published models from a project in the repository. <NAME> is the full name of the project. \n "
141- + "Named elements of the downloaded models may then be referenced models in the notebook."
142- + "(Use %projects to view repository contents.) \n "
139+ "Usage: %load [--id=<PROJECT ID> ] [--name=<NAME>] [--branch=<BRANCH_NAME>] [<NAME>]\n \n "
140+ + "Download previously published models from a project in the repository. (Use %projects to view repository contents.) \n "
141+ + "Named elements of the downloaded models may then be referenced by models in the notebook.\n "
142+ + "<NAME> is the full name of the project. \n "
143143 + "If <PROJECT ID> is given, then the project with that UUID is loaded. In this case, the <NAME> must not be given.\n "
144- + "If <BRANCH NAME> is given, then the model is loaded from this branch of the project.\n "
145- + "If <BRANCH NAME> is not given, the default branch is used.\n " ;
144+ + "If <BRANCH NAME> or <BRANCH ID> is given, then the model is loaded from this branch of the project.\n "
145+ + "If no <BRANCH NAME> or <BRANCH ID> is given, the default branch is used.\n "
146+ + "If <BRANCH ID> is given, then a <BRANCH NAME> must not be given.\n " ;
146147
147148 private static final String PROJECTS_HELP_SHORT_STRING = "%projects\t List projects in the repository" ;
148149 private static final String PROJECTS_HELP_STRING =
149150 "Usage: %projects\n \n "
150151 + "Print the name and identifier of all projects in the repository.\n " ;
151152
152- private static final String API_BASE_PATH_HELP_SHORT_STRING ="%repo\t Set the api base path for the repository" ;
153- private static final String API_BASE_PATH_HELP_STRING =
153+ private static final String REPO_HELP_SHORT_STRING ="%repo\t \ t Set the API base path for the repository" ;
154+ private static final String REPO_HELP_STRING =
154155 "Usage: %repo [<BASE PATH>]\n \n "
155- + "If <BASE PATH> is not given, print the current repository base path. \r \n "
156- + "If <BASE PATH> is given, set the repository base path. \r \n "
157- + "\r \n "
158- + "<BASE PATH> is a URL giving the API base path for the repository access by the %projects, %publish and %load commands. \r \n "
159- + "For example: https://my.domain.com/sysml_repo" ;
156+ + "Set the API base path for the repository accessed by the %projects, %publish and %load commands. \n "
157+ + "<BASE PATH> is a URL (possibly including port number), such as: https://my.domain.com/sysml_repo:9000. \n "
158+ + "If <BASE PATH> is not given, the current repository base path is printed. \n "
159+ + "If <BASE PATH> is given, the repository base path is set to this. \n "
160+ ;
160161
161162 private static String generalHelpCached ;
162163
@@ -213,8 +214,8 @@ public static String getLoadHelp() {
213214 return LOAD_HELP_STRING ;
214215 }
215216
216- public static String getApiBasePathHelp () {
217- return API_BASE_PATH_HELP_STRING ;
217+ public static String getRepoPathHelp () {
218+ return REPO_HELP_STRING ;
218219 }
219220
220221 private static Map <String , String > commandShortHelpMap = new TreeMap <>();
@@ -230,7 +231,7 @@ public static String getApiBasePathHelp() {
230231 registerHelpString ("%export" , EXPORT_HELP_SHORT_STRING , EXPORT_HELP_STRING );
231232 registerHelpString ("%load" , LOAD_HELP_SHORT_STRING , LOAD_HELP_STRING );
232233 registerHelpString ("%projects" , PROJECTS_HELP_SHORT_STRING , PROJECTS_HELP_STRING );
233- registerHelpString ("%repo" , API_BASE_PATH_HELP_SHORT_STRING , API_BASE_PATH_HELP_STRING );
234+ registerHelpString ("%repo" , REPO_HELP_SHORT_STRING , REPO_HELP_STRING );
234235 }
235236
236237 /**
0 commit comments