Giter Club home page Giter Club logo

merger's Introduction

Merger

命令 - Command

本节简单说明Linux风格的命令(command)的使用方法。

Linux等很多环境中(比如npm),设计者都会根据以下规范设计命令:

  • 使用空格将选项(option)和参数(argument)隔开;

  • 选项一般有长选项和短选项两种。长选项使用双横线( )作为前缀,单词之间用单短划线分隔;短选项则使用但短划线作为前缀,如:

    # 以下两个命令是等价的
    python --version
    python -v

    长选项和短选项有一套映射关系(有的长选项无对应的短选项,有的短选项也无对应的短选项),需要用户记忆(或查询手册)。

  • 有的选项后可以连接参数(是否能连接以及能连接多少个,都是规定好的),如:

    node ./bin/www -p 12388 --babel "v5"
  • 在某些情景下,长选项可以通过=与唯一的参数连接:

    node ./bin/www --port=12388
  • 短选项可以进行复合,如下方命令所示,分别选中了三个短选项:tvf

    tar -tvf my.tar

Merger 使用手册 - Manual

原理

本框架有唯一的入口文件index.py(在根目录下),在命令行中输入以下格式的指令,即可启动框架。command是命令,框架会根据命令定位到./src目录下的同名目录。options是选项,arguments是参数。

python index.py <command> [options] [arguments]

如输入以下指令:

python index.py merge --target-dir ./data/ --export-dir ./data-export

命令为command,有两个选定选项target-direxport-dir,对应的参数分别为./data/./data-export

指令

本节中所有指令省略python index.py前缀。

modify-filename

 modify-filename --target-dir <目标目录> --map-dependency <映射依赖文件>

merger's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.