Skip to content

Fix usage #18

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

Merged
merged 1 commit into from
Aug 29, 2019
Merged

Fix usage #18

merged 1 commit into from
Aug 29, 2019

Conversation

styfle
Copy link
Contributor

@styfle styfle commented Aug 29, 2019

You have two exports default and parseArgsStringToArgv.

The usage shown did not use the default name so it's probably best to use the named export.

@Cellule
Copy link
Collaborator

Cellule commented Aug 29, 2019

You're right, I'm too used to typescript development, I wrote the usage with the following in mind

import stringArgv from 'string-argv';
var args = stringArgv(
  '-testing test -valid=true --quotes "test quotes" "nested \'quotes\'" --key="some value" --title="Peter\'s Friends"',
  'node',
  'testing.js'
);

I should update it with a js and a ts version

@Cellule Cellule merged commit 702cbae into mccormicka:master Aug 29, 2019
@styfle styfle deleted the patch-1 branch August 29, 2019 14:36
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

Successfully merging this pull request may close these issues.

2 participants