##// END OF EJS Templates
Update IPython/core/historyapp.py to use the new traitlets API.
Matthias Bussonnier -
Show More
@@ -34,15 +34,15 b' This is an handy alias to `ipython history trim --keep=0`'
34 class HistoryTrim(BaseIPythonApplication):
34 class HistoryTrim(BaseIPythonApplication):
35 description = trim_hist_help
35 description = trim_hist_help
36
36
37 backup = Bool(False, config=True,
37 backup = Bool(False).tag(config=True,
38 help="Keep the old history file as history.sqlite.<N>")
38 help="Keep the old history file as history.sqlite.<N>")
39
39
40 keep = Int(1000, config=True,
40 keep = Int(1000).tag(config=True,
41 help="Number of recent lines to keep in the database.")
41 help="Number of recent lines to keep in the database.")
42
42
43 flags = Dict(dict(
43 flags = Dict(dict(
44 backup = ({'HistoryTrim' : {'backup' : True}},
44 backup = ({'HistoryTrim' : {'backup' : True}},
45 backup.get_metadata('help')
45 backup.help
46 )
46 )
47 ))
47 ))
48
48
@@ -118,17 +118,17 b' class HistoryTrim(BaseIPythonApplication):'
118
118
119 class HistoryClear(HistoryTrim):
119 class HistoryClear(HistoryTrim):
120 description = clear_hist_help
120 description = clear_hist_help
121 keep = Int(0, config=False,
121 keep = Int(0).tag(config=False,
122 help="Number of recent lines to keep in the database.")
122 help="Number of recent lines to keep in the database.")
123
123
124 force = Bool(False, config=True,
124 force = Bool(False).tag(config=True,
125 help="Don't prompt user for confirmation")
125 help="Don't prompt user for confirmation")
126
126
127 flags = Dict(dict(
127 flags = Dict(dict(
128 force = ({'HistoryClear' : {'force' : True}},
128 force = ({'HistoryClear' : {'force' : True}},
129 force.get_metadata('help')),
129 force.help),
130 f = ({'HistoryTrim' : {'force' : True}},
130 f = ({'HistoryTrim' : {'force' : True}},
131 force.get_metadata('help')
131 force.help
132 )
132 )
133 ))
133 ))
134 aliases = Dict()
134 aliases = Dict()
General Comments 0
You need to be logged in to leave comments. Login now