Shell command parameters without "--"

Project:JNode Shell
Component:Code
Category:feature request
Priority:normal
Assigned:Stephen Crawley
Status:by design
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.

#1

Assigned to:Anonymous» Stephen Crawley

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:

  1. If you modify a command, you should also update the book page that describes its syntax.
  2. You will need to be careful to avoid problems with syntactic ambiguity.

I'm tentatively marking this issue as "by design". If someone can suggest a better solution, please add a comment.

#2

Status:active» by design