awslabs / dynein

DynamoDB CLI written in Rust.
https://github.com/awslabs/dynein
Apache License 2.0
360 stars 37 forks source link

test: add parse_args test #236

Closed ryota-sakamoto closed 4 months ago

ryota-sakamoto commented 4 months ago

Issue #, if available:

part of #109

Description of changes:

parse_args is used by shell in order to run command. The function is depend on old clap so we need to rewrite it when we use new clap. So we add test to ensure that the function is consistent.

https://github.com/awslabs/dynein/blob/33a573892de893b923efabad36fe177b029b773a/src/cmd.rs#L65-L78

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.