Mercurial > danboorufs
changeset 5:a422e75bf464 draft
Default to symlinks mode, since it’s better.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 22 Aug 2012 11:47:19 +0200 |
parents | c40f0eed70cd |
children | 2c81cc41de2d |
files | danboorufs.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/danboorufs.py +++ b/danboorufs.py @@ -187,12 +187,12 @@ class Danbooru(LoggingMixIn, Operations) def main(args): mountpoint = args.pop() - if args[1] == '-s' or args[1] == '--use-symlinks': + if args[1] == '-n' or args[1] == '--no-symlinks': + use_symlinks = False + filelist = args[1:] + else: use_symlinks = True filelist = args[2:] - else: - use_symlinks = False - filelist = args[1:] FUSE(Danbooru(filelist, os.path.dirname(mountpoint), use_symlinks), mountpoint, foreground=True) @@ -200,7 +200,7 @@ def main(args): if __name__ == '__main__': if len(argv) < 3: - print('USAGE: %s' % argv[0], '[-s|--use-symlinks]', + print('USAGE: %s' % argv[0], '[-n|--no-symlinks]', '<tag file> [<tag file>...]', '<mountpoint>') exit(1)