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

TUI / CLI option collisions #265

Closed
mixmix opened this issue Oct 23, 2024 · 1 comment
Closed

TUI / CLI option collisions #265

mixmix opened this issue Oct 23, 2024 · 1 comment

Comments

@mixmix
Copy link
Contributor

mixmix commented Oct 23, 2024

We recently saw a problem where we wanted to be able to support options for both TUI and Programmatic CLI modes.
The problem is that if you e.g. .addOption(endopintOption()) at the root and subcommand levels with... then the defaults and parsing of these options collide (see tj/commander.js#2260)

As I see it, we're trending to one of several futures

  1. the TUI only runs default config, OR << we are currently here
  2. the TUI uses differently named options (e.g. --tui-endpoint), OR
  3. the TUI is subcommand e.g. entropy tui, OR
  4. the TUI is a different bin-script/ program e.g. entropy-interactive
@rh0delta
Copy link
Contributor

@mixmix since we have implemented option number 2, going to close this for now.

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

No branches or pull requests

2 participants