You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In project 3 for TP 201, the specs say that the --addr field should show up last for kvs-client. I think this isn't the best design because it unnecessarily complicates the subcommands setget and rm by forcing us to append the --addr field to each of them. (see the reference solution). Instead, if placed at the beginning, it makes the parsing much less verbose and also more intuitive, since the --addr is a feature of the kvs-client as opposed to the specific command being executed.
Is your feature request related to a problem?
No.
Describe the feature you'd like
Change the requirements for project 3 to indicate that the --addr field should show up in the beginning of the command. In other words, the specs should look something like this:
USAGE:
kvs-client [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--addr <addr> [default: 127.0.0.1:4000]
SUBCOMMANDS:
get
help Prints this message or the help of the given subcommand(s)
rm
set
Describe alternatives you've considered
There is no straightforward way (that I've come across in the past couple hours) that allows us to easily append a flag that applies to all subcommands at the very end.
The text was updated successfully, but these errors were encountered:
It may or may not make sense to call this out in the tutorial. Additionally, if it is better CLI design (I am not an expert here) to move the option up, then I imagine the tutorial should specify that regardless of a "workaround" (i.e. global). But I can't speak confidently to that.
Feature Request
In project 3 for TP 201, the specs say that the
--addr
field should show up last forkvs-client
. I think this isn't the best design because it unnecessarily complicates the subcommandsset
get
andrm
by forcing us to append the--addr
field to each of them. (see the reference solution). Instead, if placed at the beginning, it makes the parsing much less verbose and also more intuitive, since the--addr
is a feature of thekvs-client
as opposed to the specific command being executed.Is your feature request related to a problem?
No.
Describe the feature you'd like
Change the requirements for project 3 to indicate that the
--addr
field should show up in the beginning of the command. In other words, the specs should look something like this:Describe alternatives you've considered
There is no straightforward way (that I've come across in the past couple hours) that allows us to easily append a flag that applies to all subcommands at the very end.
The text was updated successfully, but these errors were encountered: