#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: qicongsheng
def get_version():
    return '1.3.8'


def print_version():
    print('''alipan %s
Commandline tools for aliyundrive[阿里云盘].''' % get_version())


def print_help():
    print('''alipan %s
Commandline tools for aliyundrive[阿里云盘].
Usage: alipan [ACTION] [ARGUMENT]...

ACTION
  login           login alipan
                  example: alipan login
  logout          logout alipan
                  example: alipan logout
  upload          upload file[folder] to alipan
                  example: alipan upload c:/a.txt /remote/folder/path
  download        download file[folder] from alipan
                  example: alipan download /remote/file/path/foo.mp4 c:/backup
  mv              rename alipan file[folder]
                  example: alipan mv /remote/file/path/foo.mp4 foo2.mp4
  rm              delete alipan file[folder]
                  example: alipan rm /remote/file/path/foo.mp4
  cd              change work dictory
                  example: alipan cd /remote/folder/path
  ls              show folder file list
                  example: alipan ls
  pwd             show current work dictory
                  example: alipan pwd
  exist           show file[folder] exist or not
                  example: alipan exist /remote/file/path/foo.mp4
  version         show version
                  example: alipan version
  help            show help tips
                  example: alipan help
    ''' % get_version())
