Make the commands clearer and less ambiguous
tdjastrzebski opened this issue · 7 comments
recordings list
does not seem to work anymore. The problem may be caused by command grammar ambiguity.
recordings list
may be interpreted either as a list request or download request of the recording named 'list'.
Syntax to consider:
... -p Com1 list recordings
... -p Com1 get recording 'name'
... -p Com1 get measurement 'name'
... -p Com1 set company
The key thing: command is a verb followed by object.
Then another ambiguity to solve: get recording 1
"1" may indicate both index and recoding name.
In the meantime recordings list
works fine for me
Can you copy-paste the exact command and the error message?
Never mid, this was some other problem but the command grammar is ambiguous
@tdjastrzebski A new version is available in the new_syntax
branch
Can you please take a look at it, and tell me what you think about it.
Does it meet your expectations?
This new ver 0.3 commnad syntax looks to me way better and more 'natural'.
- I would consider using Ockham's razor and eliminating
display
command.get current
could be used instead. - My spellchecker (VS Code + Code Spell Checker add-in) spotted some spelling errors.
@tdjastrzebski Thanks for testing.
You are improving greatly the utility.
I have added the get current
command.
It's not yet committed.
Unfortunately, I work in command line mode with a text editor (vim). So I don't have any spell checker.
It would be nice if you could paste the errors you get.
PR created
- It is unclear to me what
list all
andshow names
do. - You have
get saved_minmax
,get saved_peak
andget saved_measurements
butlist minmax
,list peak
andlist all
. I would either addsaved_
everywhere or remove it.