Skip to content

Commit

Permalink
Merge pull request #4 from sKawashima/CorrespondToMultipleArguments
Browse files Browse the repository at this point in the history
fixed #3
  • Loading branch information
sKawashima committed Mar 22, 2018
2 parents 106c613 + c1c87e8 commit 90d06da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# meu

めう、めうめうめう!
<font size="6">インストールはnpmで頼むめう!!!</font>
**インストールはnpmで頼むめう!!!**

`yarn global`だとpackage.jsonの中身呼んでくれないめう!
こんな無能だとは知らなかっためう!
**直打ちでCLI実行するときはcli.jsを頼むめう!!!**

## Usage
```shell
$ meu めう、めうめう
めう、めうめうめう!

$ meu つらい
つらいめう!

$ meu お金ほしい 時間ほしい とてもつらい
お金ほしいめう!
時間ほしいめう!
とてもつらいめう!
```
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node
const meu = require('./index.js')
console.log(meu(process.argv[process.argv.length - 1]))
for(let i = 1;i < process.argv.length;i++){
console.log(meu(process.argv[i]))
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meu",
"version": "0.0.9",
"version": "0.0.10",
"description": "めう、めうめうめう。",
"main": "index.js",
"author": "sKawashima",
Expand Down

0 comments on commit 90d06da

Please sign in to comment.