usage will now display if called script is called with no arguments

main
byt3bl33d3r 2015-08-28 21:46:54 +02:00
parent 7e6245389d
commit f9fd2d54af
1 changed files with 4 additions and 0 deletions

View File

@ -2655,6 +2655,10 @@ if __name__ == '__main__':
bgroup.add_argument("--upload", nargs=2, metavar=('SRC', 'DST'), help="Upload a file to the remote systems")
bgroup.add_argument("--delete", metavar="PATH", help="Delete a remote file")
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
args = parser.parse_args()
if args.verbose: