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

case with multiple cases in single statement not recognized #50

Open
monyarm opened this issue May 17, 2022 · 0 comments
Open

case with multiple cases in single statement not recognized #50

monyarm opened this issue May 17, 2022 · 0 comments

Comments

@monyarm
Copy link

monyarm commented May 17, 2022

Conf* = object

    currentVersion* {.
      hidden
      defaultValue: @[0,0,0]}: VersionNumber
    case cmd* {.
      command
      defaultValue: noCommand}: StartUpCommand

    of noCommand:
      
      ...........

    of client, waku:
      case clientParam* {.
        command
        defaultValue: ClientCommand.noClientCommand}: ClientCommand
      of ClientCommand.delete:
        folderToDelete* {.
          argument
          defaultValue: DeleteEnum.bin
          name: "folder to delete"}: DeleteEnum
      of ClientCommand.rollback:
        rollbackVersionArg* {.
          argument
          defaultValue: "0.0.0"
          name: "rollback count"}: string
      of ClientCommand.network:
        networkValue* {.
          argument
          defaultValue: mainnet
          name: "network value".}: EthNetwork
      of ClientCommand.noClientCommand, ClientCommand.version, ClientCommand.kill:
        discard

The "client" command takes arguments, bug "waku" does not.

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

1 participant