1. Laurent Bachelier
  2. rtorrent-notify

Commits

Laurent Bachelier  committed 987b2f9

Add --irknick shortcut

Because rtorrent config exec line has "," in them already.

  • Participants
  • Parent commits 08bfd0e
  • Branches master

Comments (0)

Files changed (1)

File rtorrentnotify/cli.py

View file
     parser.add_argument('-r', '--rss', type=noner,
                         default=os.path.expanduser('~/rtorrent-notify.xml'),
                         help='RSS location')
-    parser.add_argument('-i', '--irk', action='append',
+    parser.add_argument('-i', '--irk', action='append', default=[],
                         help='Irker target')
+    parser.add_argument('-n', '--irknick', action='append', default=[],
+                        help='Irker target (nick)')
     return parser.parse_args(argv[1:])
 
 
         with open(args.rss, 'w') as f:
             feed.write_xml(f, "utf-8")
 
-    if args.irk:
+    if args.irk or args.irknick:
         event = event.to_class(IrkerEvent)
-        event.send(args.irk)
+        event.send(args.irk + ['%s,isnick' % t for t in args.irknick])