Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
remove the white space otherwise run `-m xxx` the  `program.myarg` would be `undefined`
  • Loading branch information
ForJing authored Mar 2, 2019
1 parent 68545af commit 77bb580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else console.log(' without sauce');

To get string arguments from options you will need to use angle brackets <> for required inputs or square brackets [] for optional inputs.

e.g. ```.option(' -m --myarg [myVar]', 'my super cool description')```
e.g. ```.option('-m --myarg [myVar]', 'my super cool description')```

Then to access the input if it was passed in.

Expand Down

0 comments on commit 77bb580

Please sign in to comment.