Panic occurs with invalid flag passed to neo-go #25

Closed
opened 2023-01-24 07:38:12 +00:00 by vkarak1 · 0 comments
vkarak1 commented 2023-01-24 07:38:12 +00:00 (Migrated from github.com)

Could you please consider is that expected to get panic when wrong flag is passed to neo-go?

Current Behavior

root@NB-2140-wsl:~# neo-go -d
Incorrect Usage. flag provided but not defined: -d

NAME:
   neo-go - Official Go client for Neo

USAGE:
   neo-go [global options] command [command options] [arguments...]

VERSION:
   0.99.6-pre-3-gbb756c8d

COMMANDS:
   node      start a NEO node
   db        database manipulations
   contract  compile - debug - deploy smart contracts
   wallet    create, open and manage a NEO wallet
   vm        start the virtual machine
   util      Various helper commands
   query     Query data from RPC node
   help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version
panic: flag provided but not defined: -d

goroutine 1 [running]:
main.main()
        ./main.go:13 +0x4d

Could you please consider is that expected to get panic when wrong flag is passed to `neo-go`? ## Current Behavior ``` root@NB-2140-wsl:~# neo-go -d Incorrect Usage. flag provided but not defined: -d NAME: neo-go - Official Go client for Neo USAGE: neo-go [global options] command [command options] [arguments...] VERSION: 0.99.6-pre-3-gbb756c8d COMMANDS: node start a NEO node db database manipulations contract compile - debug - deploy smart contracts wallet create, open and manage a NEO wallet vm start the virtual machine util Various helper commands query Query data from RPC node help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help --version, -v print the version panic: flag provided but not defined: -d goroutine 1 [running]: main.main() ./main.go:13 +0x4d ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#25
No description provided.