You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help='Replace any existing kernel spec with this name.',
104
-
action='store_true'
105
-
)
106
-
107
-
parser.add_argument(
108
-
"--classpath",
109
-
dest="env",
106
+
'--classpath',
107
+
dest='env',
110
108
action=EnvVar,
111
109
aliases=ALIASES,
112
110
name_map=NAME_MAP,
113
-
help="A file path separator delimited list of classpath entries that should be available to the user code. **Important:** no matter what OS, this should use forward slash \"/\" as the file separator. Also each path may actually be a simple glob.",
114
-
type=type_assertion("classpath", str),
111
+
help='''
112
+
A file path separator delimited list of classpath entries that should be available to the user code.
113
+
**Important:** no matter what OS, this should use forward slash \"/\" as the file separator.
114
+
Also each path may actually be a simple glob.
115
+
''',
116
+
type=type_assertion('classpath', str),
115
117
list_sep=os.pathsep,
116
118
)
117
119
parser.add_argument(
118
-
"--comp-opts",
119
-
dest="env",
120
+
'--comp-opts',
121
+
dest='env',
120
122
action=EnvVar,
121
123
aliases=ALIASES,
122
124
name_map=NAME_MAP,
123
-
help="A space delimited list of command line options that would be passed to the `javac` command when compiling a project. For example `-parameters` to enable retaining parameter names for reflection.",
124
-
type=type_assertion("comp-opts", str),
125
-
list_sep=" ",
125
+
help='''
126
+
A space delimited list of command line options that would be passed to the `javac` command
127
+
when compiling a project. For example `-parameters` to enable retaining parameter names for reflection.
128
+
''',
129
+
type=type_assertion('comp-opts', str),
130
+
list_sep=' ',
126
131
)
127
132
parser.add_argument(
128
-
"--startup-scripts-path",
129
-
dest="env",
133
+
'--startup-scripts-path',
134
+
dest='env',
130
135
action=EnvVar,
131
136
aliases=ALIASES,
132
137
name_map=NAME_MAP,
133
-
help="A file path separator delimited list of `.jshell` scripts to run on startup. This includes jjava-jshell-init.jshell and jjava-display-init.jshell. **Important:** no matter what OS, this should use forward slash \"/\" as the file separator. Also each path may actually be a simple glob.",
134
-
type=type_assertion("startup-scripts-path", str),
138
+
help='''
139
+
A file path separator delimited list of `.jshell` scripts to run on startup.'
140
+
This includes jjava-jshell-init.jshell and jjava-display-init.jshell.
141
+
**Important:** no matter what OS, this should use forward slash \"/\" as the file separator.
142
+
Also each path may actually be a simple glob.
143
+
''',
144
+
type=type_assertion('startup-scripts-path', str),
135
145
list_sep=os.pathsep,
136
146
)
137
147
parser.add_argument(
138
-
"--startup-script",
139
-
dest="env",
148
+
'--startup-script',
149
+
dest='env',
140
150
action=EnvVar,
141
151
aliases=ALIASES,
142
152
name_map=NAME_MAP,
143
-
help="A block of java code to run when the kernel starts up. This may be something like `import my.utils;` to setup some default imports or even `void sleep(long time) { try {Thread.sleep(time); } catch (InterruptedException e) { throw new RuntimeException(e); }}` to declare a default utility method to use in the notebook.",
144
-
type=type_assertion("startup-script", str),
153
+
help='''
154
+
A block of java code to run when the kernel starts up.
155
+
This may be something like `import my.utils;` to setup some default imports
156
+
or even `void sleep(long time) { try {Thread.sleep(time); } catch (InterruptedException e)
157
+
{ throw new RuntimeException(e); }}` to declare a default utility method to use in the notebook.
158
+
''',
159
+
type=type_assertion('startup-script', str),
145
160
)
146
161
parser.add_argument(
147
-
"--timeout",
148
-
dest="env",
162
+
'--timeout',
163
+
dest='env',
149
164
action=EnvVar,
150
165
aliases=ALIASES,
151
166
name_map=NAME_MAP,
152
-
help="A duration specifying a timeout (in milliseconds by default) for a _single top level statement_. If less than `1` then there is no timeout. If desired a time may be specified with a `TimeUnit` may be given following the duration number (ex `\"30 SECONDS\"`).",
153
-
type=type_assertion("timeout", str),
167
+
help='''
168
+
A duration specifying a timeout (in milliseconds by default) for a _single top level statement_.
169
+
If less than `1` then there is no timeout.
170
+
If desired a time may be specified with a `TimeUnit` may be given following the duration number
0 commit comments