pombreda / clamshell-cli

Automatically exported from code.google.com/p/clamshell-cli
Apache License 2.0
0 stars 0 forks source link

Command arguments are not cleared for commands without args #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Write a command which echoes its arguments
2. Start this command with one or more args
3. Start this command with no arguments

The step 3 should output no arguments, but you see the arguments from step 2.

The cause for this bug is in CmdController around line 70: There is a check for 
one or more arguments, but Context.KEY_COMMAND_LINE_ARGS is not cleared if 
there are no arguments.

Tested in Revision 47ea6f393262.

Original issue reported on code.google.com by thomas.s...@gmail.com on 16 Dec 2011 at 11:47

GoogleCodeExporter commented 9 years ago
Fixed in 0.5.x version

Original comment by vladimir...@gmail.com on 16 Mar 2012 at 3:02

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by vladimir...@gmail.com on 16 Mar 2012 at 3:09