diff --git a/code/flees-manager.py b/code/flees-manager.py index ef20bc4..c5f9e4c 100755 --- a/code/flees-manager.py +++ b/code/flees-manager.py @@ -374,7 +374,7 @@ def print_rest_api(shares, config, opts): def print_rest_api_client(config, share, token): print("Command to run python client:") - print("python <( %s/script/client/%s/%s )"%( + print("python <( curl -s %s/script/client/%s/%s )"%( config['public_url'], share['name'], token @@ -617,7 +617,7 @@ def parse_options(): parser_rest = subparsers.add_parser('rest', help = "Display REST API links") parser_rest.add_argument(dest="name", help = "Name of the share") parser_rest.add_argument(dest="type", help = "Type of command", - choices = ['list','login','upload','download','direct','zip'] + choices = ['client','direct','download','list','login','upload','zip'] ) parser_rest.add_argument(dest="filename", help = "File name for download/direct queries", nargs = '?',