Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

argv.s.split() is not a function => problem with argument parser #334

Closed
Twiggeh opened this issue May 24, 2021 · 2 comments
Closed

argv.s.split() is not a function => problem with argument parser #334

Twiggeh opened this issue May 24, 2021 · 2 comments
Labels

Comments

@Twiggeh
Copy link

Twiggeh commented May 24, 2021

In index on line 260 s / schema argument is an array, but is expected to be a string. Not sure why it is that though, it did work correctly for me when I was using it as localhost, but it broke when I pasted a url.
image

Basically every input field breaks when there is an ip? I have now hardcoded the password and output url, and it works nicely :D
Seems like an upstream issue with yargs maybe ?

Node version: 16.0.0
yarn version : 1.22.10

@Twiggeh Twiggeh changed the title argv.s.split() is not a function argv.s.split() is not a function => problem with argument parser May 24, 2021
@Kononnable
Copy link
Owner

What do you mean by url? There is no support for passing db urls(#140).

SchemaNames is an array because of possibility of passing multiple schemas(and the way of [not] putting schema names in generated code). Is it possible that some of the characters you enter are special characters for your shell, and typeorm-model-generator actually receives different input then you're writing in your shell?

@stale
Copy link

stale bot commented Aug 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 13, 2021
@stale stale bot closed this as completed Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants