Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Running NeXtMidas Commands / Switches
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
   + NeXtMidas Shell   
   - Running NeXtMidas Commands   
      - Basic Commands   
      - Parameters   
      - Switches   
      - Command Recall/Completion   
   + Results Parameters   
   + Lab 1   
   + Getting Help   
   + Lab 2   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Command Switches:
    • Some commands can have command modifiers, called switches, that modify how the command runs. Switches are easy to identify since they start with a slash (/).
      nM> calculator/hex x 2 2 +
      Calc: X = 0x00000004
    • Switches are specified immediately after the command name (with no spaces), or at the end of the command (preceded by a space).
      nM> calculator x 2 2 + /hex
      Calc: X = 0x00000004
    • There are two types of switches:
      State Switches
      Turn a feature on by the presence of the switch.
      Specifying a state switch as /NAME or /NAME=ON MAY be the same thing.
      It is possible to force a state switch to be off using /NAME=OFF.
      On state switches, the following true/false values are equivalent:
      • TRUE: Y,YES,T,TRUE,ON,1
      • FALSE: N,NO,F,FALSE,OFF,0
      Value Switches
      Specifies an appropriate value using the /NAME= syntax.
X-Midas Users Take Note:
X-Midas switches must immediately follow the name of the command. In X-Midas, state switches are turned off by the absence of the switch, in NeXtMidas they can be turned off explicitly by using /NAME=OFF.