Code Monkey home page Code Monkey logo

u0008-killer's Introduction

u0008-killer

删除文件中的 \u0008 字符

使用

usage: u0008 [-h] [-r [{true,false}]] [-rh [{true,false}]] [-c C]
             [-ext EXT] folder

remove \u0008 in the text file(s).

positional arguments:
  folder                 root search folder

named arguments:
  -h, --help             show this help message and exit
  -r [{true,false}]      search file recursively (default: false)
  -rh [{true,false}]     replace hidden files (default: false)
  -c C                   charset of input file(s) (default: utf-8)
  -ext EXT               指定需要替换的文件的后缀名, 用 |  连接,  比如 'md'
                         或 'md|java', 默认替换所有文件

编译安装

mvn install

技术笔记

Argparse4J 实现

  1. choice 设置很棒
  2. 长短名设置很棒, 同一个参数可以有多个名字
  3. 解析完之后转换为对象体验不佳
  4. 只输入选项时默认值解析体验不佳, 因为存在意义混淆的情况

Args4J

  1. 注解体验很棒
  2. printUsage 体验不佳
  3. boolean 值默认为 true 时如何关闭不知

u0008-killer's People

Contributors

yu961549745 avatar

Watchers

 avatar  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.