michael-yuji / xc

FreeBSD container engine
Other
88 stars 9 forks source link

Clap fixes for the "run" command #2

Closed daniloegea closed 1 year ago

daniloegea commented 1 year ago

The command "run" will panic in Debug mode due to some inconsistencies with the Clap configuration.

The first issue is that the "publish" argument is shared between "create" and "run" and, as they are flattened in the enum Action, clap will complain they are not unique.

The second issue is probably a typo. The short name "u" is used by the "user" and "group" arguments in the RunArg struct.

My Rust still needs some oxidation so there might be a better solution for that :)

michael-yuji commented 1 year ago

@daniloegea Thank you so much!