Skip to content

Commit 10c4b50

Browse files
committed
Update flags constraints
1 parent dfd99cf commit 10c4b50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

designs/0002-tags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ These commands can be:
3939
`ota upload --device-tags <key0>=<value0>,<key1>=<value1> --file <sketch-file.ino.bin>` to perform an upload via ota to all the devices having all the tags passed
4040

4141

42-
To be decided, **which flag is mandatory and which is optional**:
42+
**flags constraints**:
4343
In delete and ota commands, the `--id` flag should become **optional** instead of mandatory.
44-
Then, if neither `--id` nor `--tags` is passed, the command could return an error telling the user to specify at least one of the two flags.
45-
On the other hand, if both flags are passed, we could follow different approaches: return an error, use only one flag (only tags or only id), try to use both flags.
44+
Then, if neither `--id` nor `--tags` is passed, the command should return an error telling the user to specify at least one of the two flags.
45+
On the other hand, if both flags are passed, the command should return an error telling to choose only one of the two flags.
4646

4747
Another thing to be decided is **how to handle errors**:
4848
- Try to execute the command on all the indicated resources, without stopping in case of errors. At the end, print all the errors details.

0 commit comments

Comments
 (0)