fgeorges / mlproj-core

Core implementation of mlproj, everything not TUI-related
Apache License 2.0
1 stars 2 forks source link

Handle switches in same order #33

Open eurochriskelly opened 6 years ago

eurochriskelly commented 6 years ago

The following is confusing

mlproj deploy good

mlproj -e foo deploy good

mlproj deploy -s bar good

mlproj -e foo deploy -s bar good

but

mlproj -e foo -s bar deploy bad

mlproj -s bar deploy bad

mlproj deploy - foo bad

mlproj deploy -e foo -s bar bad

it would be idiomatic to process named options separately. Many libraries do this automatically such as optimist and yargs.