Skip to content

Commit

Permalink
chore(cmd/gno): remove dead/dormant flags from repl (#1737)
Browse files Browse the repository at this point in the history
Removed `-verbose` and `-imports` flags from the `gno repl` command as
they were not functional.

Reducing clutter ✨
  • Loading branch information
harry-hov authored Mar 6, 2024
1 parent ce47828 commit 6c27754
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion docs/gno-tooling/cli/gno.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ gno {SUB_COMMAND}

| Name | Type | Description |
| ---------- | ------- | ------------------------------------------------------------------ |
| `verbose` | Boolean | Displays extended information. |
| `root-dir` | String | Clones location of github.com/gnolang/gno (gno tries to guess it). |
16 changes: 0 additions & 16 deletions gnovm/cmd/gno/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import (
)

type replCfg struct {
verbose bool
rootDir string
initialImports string
initialCommand string
skipUsage bool
}
Expand All @@ -40,27 +38,13 @@ func newReplCmd() *commands.Command {
}

func (c *replCfg) RegisterFlags(fs *flag.FlagSet) {
fs.BoolVar(
&c.verbose,
"verbose",
false,
"verbose output when running",
)

fs.StringVar(
&c.rootDir,
"root-dir",
"",
"clone location of github.com/gnolang/gno (gno tries to guess it)",
)

fs.StringVar(
&c.initialImports,
"imports",
"gno.land/p/demo/avl,gno.land/p/demo/ufmt",
"initial imports, separated by a comma",
)

fs.StringVar(
&c.initialCommand,
"command",
Expand Down

0 comments on commit 6c27754

Please sign in to comment.