Open eurochriskelly opened 6 years ago
The following is confusing
mlproj deploy good
mlproj deploy
mlproj -e foo deploy good
mlproj -e foo deploy
mlproj deploy -s bar good
mlproj deploy -s bar
mlproj -e foo deploy -s bar good
mlproj -e foo deploy -s bar
but
mlproj -e foo -s bar deploy bad
mlproj -e foo -s bar deploy
mlproj -s bar deploy bad
mlproj -s bar deploy
mlproj deploy - foo bad
mlproj deploy - foo
mlproj deploy -e foo -s bar bad
mlproj deploy -e foo -s bar
it would be idiomatic to process named options separately. Many libraries do this automatically such as optimist and yargs.
The following is confusing
mlproj deploy
goodmlproj -e foo deploy
goodmlproj deploy -s bar
goodmlproj -e foo deploy -s bar
goodbut
mlproj -e foo -s bar deploy
badmlproj -s bar deploy
badmlproj deploy - foo
badmlproj deploy -e foo -s bar
badit would be idiomatic to process named options separately. Many libraries do this automatically such as optimist and yargs.