default to Netscape format for importer
This commit is contained in:
parent
38e3c1ee8f
commit
3d87f4ebdf
@ -63,9 +63,11 @@ def main():
|
|||||||
if not output_format:
|
if not output_format:
|
||||||
output_format = 'quickmark'
|
output_format = 'quickmark'
|
||||||
if not input_format:
|
if not input_format:
|
||||||
if not args.browser:
|
if args.browser:
|
||||||
sys.exit("Must specify either browser or input format")
|
|
||||||
input_format = browser_default_input_format[args.browser]
|
input_format = browser_default_input_format[args.browser]
|
||||||
|
else:
|
||||||
|
#default to netscape
|
||||||
|
input_format = 'netscape'
|
||||||
|
|
||||||
import_function = {'netscape': import_netscape_bookmarks}
|
import_function = {'netscape': import_netscape_bookmarks}
|
||||||
import_function[input_format](args.bookmarks, bookmark_types,
|
import_function[input_format](args.bookmarks, bookmark_types,
|
||||||
@ -86,7 +88,8 @@ def get_args():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-i',
|
'-i',
|
||||||
'--input-format',
|
'--input-format',
|
||||||
help='Which input format? (overrides browser default)',
|
help='Which input format? (overrides browser default; "netscape" if '
|
||||||
|
'neither given)',
|
||||||
choices=set(browser_default_input_format.values()),
|
choices=set(browser_default_input_format.values()),
|
||||||
required=False)
|
required=False)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user