diff --git a/src/poca/args.py b/src/poca/args.py index 4937b63..201bc23 100644 --- a/src/poca/args.py +++ b/src/poca/args.py @@ -48,6 +48,8 @@ def get_poca_subscribe_args(): 'command --help\' for futher information') add_parser = subparsers.add_parser('add', help='Add a new subscription ' 'interactively') + add_parser.add_argument('url', nargs='?', + help="URL of feed") list_parser = subparsers.add_parser('list', help='List current subscriptions') tags_parser = subparsers.add_parser('tags', diff --git a/src/scripts/poca-subscribe b/src/scripts/poca-subscribe index 55870f5..0793ce0 100755 --- a/src/scripts/poca-subscribe +++ b/src/scripts/poca-subscribe @@ -23,7 +23,7 @@ def main(): if args.cmd_name == 'delete': poca.subscribe.delete(conf, args) elif args.cmd_name == 'add': - sub_dic, sub_category = poca.subscribe.user_input_add_sub() + sub_dic, sub_category = poca.subscribe.user_input_add_sub(args.url) if sub_dic is not None: poca.subscribe.add_sub(conf, sub_category, sub_dic) elif args.cmd_name == 'list':