Skip to content

Commit

Permalink
Merge pull request #11 from iotaledger/fix/document-required-args
Browse files Browse the repository at this point in the history
fix(cli): Document required args in help message
  • Loading branch information
obany authored Aug 17, 2020
2 parents 80cd5b3 + b6927c9 commit 1e3a86c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ An application for creating a transaction on the IOTA Tangle from a GitHub relea

Options:
-v, --version output the current version
--github-token <string> GitHub token for accessing your repository
--owner <string> GitHub repository owner
--repository <string> GitHub repository
--release-tag <string> The release tag from the GitHub repository
--github-token <string> GitHub token for accessing your repository (required)
--owner <string> GitHub repository owner (required)
--repository <string> GitHub repository (required)
--release-tag <string> The release tag from the GitHub repository (required)
--node <string> Url of the node to use for attaching the transaction to the tangle (default:
"https://nodes.iota.cafe:443")
--depth <number> Depth to use for attaching the transaction to the tangle (default: "3")
Expand Down
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ program
.name(chalk.yellowBright("gh-tangle-release"))
.version(version, "-v, --version", chalk.yellowBright("output the current version"))
.description(chalk.cyan("An application for creating a transaction on the IOTA Tangle from a GitHub release."))
.option("--github-token <string>", chalk.yellowBright("GitHub token for accessing your repository"))
.option("--owner <string>", chalk.yellowBright("GitHub repository owner"))
.option("--repository <string>", chalk.yellowBright("GitHub repository"))
.option("--release-tag <string>", chalk.yellowBright("The release tag from the GitHub repository"))
.option("--github-token <string>", chalk.yellowBright("GitHub token for accessing your repository (required)"))
.option("--owner <string>", chalk.yellowBright("GitHub repository owner (required)"))
.option("--repository <string>", chalk.yellowBright("GitHub repository (required)"))
.option("--release-tag <string>", chalk.yellowBright("The release tag from the GitHub repository (required)"))
.option("--node <string>", chalk.yellowBright("Url of the node to use for attaching the transaction to the tangle"),
"https://nodes.iota.cafe:443")
.option("--depth <number>", chalk.yellowBright("Depth to use for attaching the transaction to the tangle"),
"3")
.option("--mwm <number>",
chalk.yellowBright("Minimum weight magnitude to use for attaching the transaction to the tangle"),
"14")
.option("--seed <string>", chalk.yellowBright("81 Tryte seed used to generate addresses"))
.option("--seed <string>", chalk.yellowBright("81 Tryte seed used to generate addresses (required)"))
.option("--address-index <number>", chalk.yellowBright("Index number used to generate addresses"), "0")
.option("--transaction-tag <string>", chalk.yellowBright("Tag to apply to the Tangle transaction"), "GITHUB9RELEASE")
.option("--comment <string>",
Expand Down

0 comments on commit 1e3a86c

Please sign in to comment.