This module contains default application command line arguments definitions.
- Version:
-
- 0.0.1
- Since:
-
- 0.0.1
- See:
Example
// Example of uses of arguments : cross-env NODE_ENV=development host=192.168.1.123 port=741258 protocol=https // or cross-env NODE_ENV=development -h 192.168.1.123 -p 741258 -o https
Members
-
<static> host :object
-
The main hostname argument used by the Server.
Type:
- object
- Since:
-
- 0.0.1
- Default Value:
-
- undefined
Properties:
Name Type Description aliasstring The argument alias.
describestring The argument description.
demandboolean Defines if the argument is required.
defaultstring The argument default value.
parseValuesboolean Parse values or not.
Example
// Example how to pass the host argument cross-env -h=127.0.0.1 // or cross-env host=192.168.1.2
-
<static> port :object
-
The main port argument used by the Server.
Type:
- object
- Since:
-
- 0.0.1
- Default Value:
-
- undefined
Properties:
Name Type Description aliasstring The argument alias.
describestring The argument description.
demandboolean Defines if the argument is required.
defaultstring The argument default value.
parseValuesboolean Parse values or not.
Example
// Example how to pass the port argument cross-env -p=75000 // or cross-env port=75000
-
<static> protocol :object
-
The main protocol argument used by the Server.
Type:
- object
- Since:
-
- 0.0.1
- Default Value:
-
- undefined
Properties:
Name Type Description aliasstring The argument alias.
describestring The argument description.
demandboolean Defines if the argument is required.
defaultstring The argument default value.
parseValuesboolean Parse values or not.
Example
// Example how to pass the protocol argument cross-env -o=https // or cross-env protocol=https
Documentation