Skip to content

Commit 56dea9b

Browse files
authored
Change -ip shorthand to -a
1 parent a47d3f5 commit 56dea9b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"preLaunchTask": "tsc: build - tsconfig.json",
1313
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1414
"args": [
15-
//"-ip", "192.168.0.5"
15+
//"-a", "192.168.0.5"
1616
"-p", "Deskjet 3520 series",
1717
"-f", "'scan'_dd.mm.yyyy_hh:MM:ss"
1818
]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Please note that the `node-hp-scan-to` project is not endorsed by nor affiliated
6666
### Command line
6767
`npx node-hp-scan-to`
6868

69-
- `-ip` or `--address` followed by the ip address of the printer, i.e. `-ip 192.168.0.5`. This overrides `-p`.
69+
- `-a` or `--address` followed by the ip address of the printer, i.e. `-a 192.168.0.5`.
7070
- `--device-up-polling-interval` is the polling interval in milliseconds to detect if the device is up or not
7171
- `-l` or `--label` The label to display on the printer (default is the hostname).
7272
- `-n` or `--name` followed by the printer name, it probably contains spaces, so it needs to be quoted, i.e. `-name "Officejet 6500 E710n-z"`
@@ -113,7 +113,7 @@ For the correct permissions to the volume set the environment variables `PUID` a
113113
Exhaustive list of supported environment variables and their meaning, or correspondence with [command-line flags](#command-line):
114114
- `PUID`: id of user that will run the program
115115
- `PGID`: id of group that will run the program
116-
- `IP`: command-line flag `-ip`/`--address`
116+
- `IP`: command-line flag `-a`/`--address`
117117
- `PATTERN`: command-line flag `-p`/`--pattern`
118118
- `LABEL`: command-line flag `-l`/`--label`
119119
- `NAME`: command-line flag `-n`/`--name`
@@ -218,7 +218,7 @@ cd node-hp-scan-to
218218
yarn install -d
219219
yarn build
220220
# now start the program with the ip or name of the desired printer
221-
node dist/index.js -ip 192.168.1.4 # or -n "Officejet 6500 E710n-z"
221+
node dist/index.js -a 192.168.1.4 # or -n "Officejet 6500 E710n-z"
222222
```
223223

224224
#### Debugging

root/app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ARGS="--health-check -d /scan "
44

55
if [ ! -z "$IP" ]; then
6-
ARGS="${ARGS} -ip ${IP}"
6+
ARGS="${ARGS} -a ${IP}"
77
fi
88

99
if [ ! -z "$LABEL" ]; then

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function setupScanParameters(command: Command): Command {
256256

257257
function setupParameterOpts(command: Command): Command {
258258
command.option(
259-
"-ip, --address <ip>",
259+
"-a, --address <ip>",
260260
"IP address of the device (this overrides -p)",
261261
);
262262
command.option(

0 commit comments

Comments
 (0)