Skip to content

Commit 094a55e

Browse files
committed
Add flags
1 parent 6faf9b3 commit 094a55e

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

nbviewer/app.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,35 @@ class NBViewer(Application):
120120
'debug' : (
121121
{'Application' : {'log_level' : logging.DEBUG}},
122122
"Set log-level to debug, for the most verbose logging."
123-
),
123+
),
124+
'generate-config' : (
125+
{'NBViewer' : {'generate_config' : True}},
126+
"Generate default config file."
127+
),
128+
'localfile-any-user' : (
129+
{'NBViewer' : {'localfile_any_user' : True}},
130+
"Also serve files that are not readable by 'Other' on the local file system."
131+
),
132+
'localfile-follow-symlinks' : (
133+
{'NBViewer' : {'localfile_follow_symlinks' : True}},
134+
"Resolve/follow symbolic links to their target file using realpath."
135+
),
136+
'no-cache' : (
137+
{'NBViewer' : {'no_cache' : True}},
138+
"Do not cache results."
139+
),
140+
'no-check-certificate' : (
141+
{'NBViewer' : {'no_check_certificate' : True}},
142+
"Do not validate SSL certificates."
143+
),
144+
'y' : (
145+
{'NBViewer' : {'answer_yes' : True}},
146+
"Answer yes to any questions (e.g. confirm overwrite)."
147+
),
148+
'yes' : (
149+
{'NBViewer' : {'answer_yes' : True}},
150+
"Answer yes to any questions (e.g. confirm overwrite)."
151+
),
124152
})
125153

126154
# Use this to insert custom configuration of handlers for NBViewer extensions

0 commit comments

Comments
 (0)