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

Follow argument (flag) convention #8

Merged
merged 3 commits into from
Apr 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions pacli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,28 +620,28 @@ def cli():
dest="command",
description='valid subcommands')

parser.add_argument("-newaddress", action="store_true",
help="generate a new address and import to wallet.")
parser.add_argument("-status", action="store_true", help="show pacli status.")
parser.add_argument("-addressbalance", action="store", nargs=2, help="check card balance of the address")
parser.add_argument("--newaddress", action="store_true",
help="generate a new address and import to wallet")
parser.add_argument("--status", action="store_true", help="show pacli status")
parser.add_argument("--addressbalance", action="store", nargs=2, help="check card balance of the address")

deck = subparsers.add_parser('deck', help='Deck manipulation.')
deck.add_argument("-list", choices=['all', 'subscribed'],
deck.add_argument("--list", choices=['all', 'subscribed'],
help="list decks")
deck.add_argument("-info", action="store", help="show details of <asset_id>")
deck.add_argument("-subscribe", action="store", help="subscribe to <deck id>")
deck.add_argument("-search", action="store", help='''search for decks by name, id,
issue mode, issuer or number of decimals.''')
deck.add_argument("-new", action="store", help="spawn new deck")
deck.add_argument("-checksum", action="store", help="verify deck card balance checksum.")
deck.add_argument("-balances", action="store", help="show balances of this deck.")

card = subparsers.add_parser('card', help='Cards manipulation.')
card.add_argument("-list", action="store", help="list all card transactions of this deck.")
card.add_argument("-export", action="store", nargs=2, help="export all cards of this deck to csv file.")
card.add_argument("-issue", action="store", help="issue cards for this deck.")
card.add_argument("-transfer", action="store", help="send cards to receivers.")
card.add_argument("-burn", action="store", help="burn cards.")
deck.add_argument("--info", action="store", help="show details of <asset_id>")
deck.add_argument("--subscribe", action="store", help="subscribe to <deck id>")
deck.add_argument("--search", action="store", help='''search for decks by name, id,
issue mode, issuer or number of decimals''')
deck.add_argument("--new", action="store", help="spawn new deck")
deck.add_argument("--checksum", action="store", help="verify deck card balance checksum")
deck.add_argument("--balances", action="store", help="show balances of this deck")

card = subparsers.add_parser('card', help='Card manipulation.')
card.add_argument("--list", action="store", help="list all card transactions of this deck")
card.add_argument("--export", action="store", nargs=2, help="export all cards of this deck to csv file")
card.add_argument("--issue", action="store", help="issue cards for this deck")
card.add_argument("--transfer", action="store", help="send cards to receivers")
card.add_argument("--burn", action="store", help="burn cards")

return parser.parse_args()

Expand Down