Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB 2 Jupyter Kernel
Commits
9cfcf2fb
Commit
9cfcf2fb
authored
May 29, 2018
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Remove Command.getLongHelp()
parent
94d0aa78
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/prob2/jupyter/commands/Command.java
+0
-4
0 additions, 4 deletions
src/main/java/de/prob2/jupyter/commands/Command.java
src/main/java/de/prob2/jupyter/commands/HelpCommand.java
+1
-1
1 addition, 1 deletion
src/main/java/de/prob2/jupyter/commands/HelpCommand.java
with
1 addition
and
5 deletions
src/main/java/de/prob2/jupyter/commands/Command.java
+
0
−
4
View file @
9cfcf2fb
...
@@ -11,9 +11,5 @@ public interface Command {
...
@@ -11,9 +11,5 @@ public interface Command {
public
abstract
@NotNull
String
getShortHelp
();
public
abstract
@NotNull
String
getShortHelp
();
public
default
@NotNull
String
getLongHelp
()
{
return
this
.
getSyntax
()
+
"\n\n"
+
this
.
getShortHelp
();
}
public
abstract
@NotNull
DisplayData
run
(
final
@NotNull
ProBKernel
kernel
,
final
@NotNull
String
argString
);
public
abstract
@NotNull
DisplayData
run
(
final
@NotNull
ProBKernel
kernel
,
final
@NotNull
String
argString
);
}
}
This diff is collapsed.
Click to expand it.
src/main/java/de/prob2/jupyter/commands/HelpCommand.java
+
1
−
1
View file @
9cfcf2fb
...
@@ -56,7 +56,7 @@ public final class HelpCommand implements Command {
...
@@ -56,7 +56,7 @@ public final class HelpCommand implements Command {
if
(
command
==
null
)
{
if
(
command
==
null
)
{
throw
new
UserErrorException
(
String
.
format
(
"Cannot display help for unknown command \"%s\""
,
commandName
));
throw
new
UserErrorException
(
String
.
format
(
"Cannot display help for unknown command \"%s\""
,
commandName
));
}
}
return
new
DisplayData
(
command
.
get
Long
Help
());
return
new
DisplayData
(
command
.
get
Syntax
()
+
"\n\n"
+
command
.
getShort
Help
());
}
else
{
}
else
{
throw
new
UserErrorException
(
"Expected at most 1 argument, got "
+
args
.
size
());
throw
new
UserErrorException
(
"Expected at most 1 argument, got "
+
args
.
size
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment