Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encguess CLI example to README.md #33

Closed
mcandre opened this issue Feb 5, 2015 · 1 comment
Closed

Add encguess CLI example to README.md #33

mcandre opened this issue Feb 5, 2015 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Feb 5, 2015

Now that the awesome encguess command line wrapper is available, could we add a quick example to the README?

@dankogai
Copy link
Owner

dankogai commented Feb 5, 2015

I have refactored it so that with '-h' or without arguments it shows quick help:

Usage:
      encguess [switches] filename...

  Switches:
    -s
      specify a list of "suspect encoding types" to test, seperated by
      either ":" or ","

    -S
      output a list of all acceptable encoding types that can be used with
      the -s param

    -u
      suppress display of unidentified types

  Examples:
    * Guess encoding of a file named "test.txt", using only the default
      suspect types.

         encguess test.txt

    * Guess the encoding type of a file named "test.txt", using the suspect
      types "euc-jp,shiftjis,7bit-jis".

         encguess -s euc-jp,shiftjis,7bit-jis test.txt
         encguess -s euc-jp:shiftjis:7bit-jis test.txt

    * Guess the encoding type of several files, do not display results for
      unidentified files.

         encguess -us euc-jp,shiftjis,7bit-jis test*.txt

And the long help is also available via perldoc encguess.

Dan the Maintainer Thereof

@dankogai dankogai closed this as completed Feb 5, 2015
apennebaker-ni added a commit to mcandre/p5-encode that referenced this issue Feb 5, 2015
dankogai added a commit that referenced this issue Feb 5, 2015
rurban pushed a commit to rurban/p5-encode that referenced this issue May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants