Shell command parameters without "--"
Project: | JNode Shell |
Component: | Code |
Category: | feature request |
Priority: | normal |
Assigned: | Stephen Crawley |
Status: | by design |
Jump to:
Description
It's useful for the JNode commands to have the "--" prefix for switches because this will make possible to support compatibility with the unix commands in the Bjrone shell.
For the default shell of JNode these switches coud be simplified by removing the prefix. This will make command editting less cumbersome in interactive mode and we should not forget that this was the default behaviour of the old command syntax too.
- Login to post comments
#1
Unfortunately, I cannot think of a way do this globally without breaking the conceptual model of the new syntax system.
I have defined a new <verb> syntax element that will behave like old-style JNode command-line options. If you wanted to, you could modify selected syntaxes in the respective descriptor files to use <verb> in place of <option>. However:
I'm tentatively marking this issue as "by design". If someone can suggest a better solution, please add a comment.
#2