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

Replaces yargs with commander. #391

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Conversation

MicahZoltu
Copy link
Contributor

Works towards resolving #361. Yargs brings in ~26 packages while commander brings in 1.

@MicahZoltu
Copy link
Contributor Author

It is worth noting, I'm leaning on existing tests covering this. I did do a run of node ./solcjs --bin test/contracts/Smoke.sol and it appeared to "do the right thing". I also tried with --abi which also appears to have worked.

@MicahZoltu
Copy link
Contributor Author

MicahZoltu commented Oct 27, 2019

Looking into test failures now (the tests won't run on my machine for some reason):

> [email protected] lint C:\Users\micah\Source\solc-js
> semistandard

'semistandard' is not recognized as an internal or external command,
operable program or batch file.

@coveralls
Copy link

coveralls commented Oct 27, 2019

Coverage Status

Coverage remained the same at 57.634% when pulling 6d36eac on MicahZoltu:yargs-replacement into edfb717 on ethereum:master.

solcjs Outdated
.option('--optimize', 'Enable bytecode optimizer.')
.option('--bin', 'Binary of the contracts in hex.')
.option('--abi', 'ABI of the contracts.')
.option('--standard-json', 'Standard JSON configuration file.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't take a file name so that the help text is confusing. I'd suggest to stick to the original text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I have no idea why I changed that. Fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, I pushed the wrong branch... give me a few minutes while I clean up the mess I just created for myself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Works towards resolving ethereum#361.  Yargs brings in ~26 packages while commander brings in 1.
@axic axic merged commit fba2b03 into ethereum:master Oct 29, 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

Successfully merging this pull request may close these issues.

3 participants