Skip to content

Conversation

@VShingala
Copy link
Member

This PR adds support for options during CLI conversion and also adds documentation for the same. Uses some logic from #218.

@VShingala VShingala force-pushed the feature/cli-options branch 3 times, most recently from af4e843 to c08048d Compare September 20, 2020 15:06
@@ -0,0 +1,8 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this used?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just an example of how option config can be used. Not used anywhere.

@@ -0,0 +1,18 @@
id|type|available options|default|description|usage
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

}
}
else {
console.warn('\x1b[33m%s\x1b[0m', 'Warning: Invalid defined option ', option[0]);
Copy link
Contributor

Choose a reason for hiding this comment

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

definedOptions terminology seems confusing to me. These options are something the user supplies through the cli right?
We can probably omit the word defined and just have: Warning: Invalid option or maybe Warning: Invalid option supplied ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, Warning: Invalid option supplied looks good. 👍

Copy link
Contributor

@umeshp7 umeshp7 left a comment

Choose a reason for hiding this comment

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

Small change in logging required.

@stueynz
Copy link

stueynz commented Oct 5, 2020

Is this one going to be merged into the base branch soon? I've got a pull request that adds a couple more options, and want to do them the new way.

Also will need to re-work #303 to fit in with the new way of doing options from the command line.

@VShingala VShingala merged commit 42cd612 into develop Oct 6, 2020
@VShingala
Copy link
Member Author

@stueynz This is available in base branch, Also I have pulled latest develop with some conflicts resolved into #303 and merged it.

@umeshp7 umeshp7 deleted the feature/cli-options branch November 24, 2021 06:39
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.

4 participants