Skip to content

Commit

Permalink
Merge branch 'mixmix/fix-cli-opts' into mixmix/file-restructure/QA
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Oct 3, 2024
2 parents a415db0 + fb4691b commit f686ce3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/account/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EntropyAccount } from "./main";
import { selectAndPersistNewAccount, addVerifyingKeyToAccountAndSelect } from "./utils";
import { ACCOUNTS_CONTENT } from './constants'
import * as config from '../config'
import { cliWrite, accountOption, endpointOption, loadEntropy, passwordOption } from "../common/utils-cli";
import { accountOption, endpointOption, passwordOption, cliWrite, loadEntropy } from "../common/utils-cli";

export function entropyAccountCommand () {
return new Command('account')
Expand Down
4 changes: 2 additions & 2 deletions src/common/utils-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export function passwordOption (description?: string) {
'-p, --password <string>',
description || 'Password for the account'
)
.hideHelp() // TEMP
.hideHelp(true)
}

export function accountOption () {
const storedConfig = getConfigOrNull()

return new Option(
'-a, --account <address|name>',
'-a, --account <name|address>',
[
'Sets the account for the session.',
'Defaults to the last set account (or the first account if one has not been set before).'
Expand Down
2 changes: 1 addition & 1 deletion src/sign/command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command, /* Option */ } from 'commander'
import { cliWrite, accountOption, endpointOption, loadEntropy, passwordOption } from '../common/utils-cli'
import { accountOption, endpointOption, passwordOption, cliWrite, loadEntropy } from '../common/utils-cli'
import { EntropySign } from './main'

export function entropySignCommand () {
Expand Down
2 changes: 1 addition & 1 deletion src/transfer/command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from "commander"
import { accountOption, endpointOption, loadEntropy, passwordOption } from "../common/utils-cli"
import { accountOption, endpointOption, passwordOption, loadEntropy } from "../common/utils-cli"
import { EntropyTransfer } from "./main"

export function entropyTransferCommand () {
Expand Down

0 comments on commit f686ce3

Please sign in to comment.