File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed
packages/php-wasm/xdebug-bridge/src Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -13,41 +13,38 @@ interface CLIArgs {
13
13
14
14
function parseCliArgs ( ) : CLIArgs {
15
15
return yargs ( hideBin ( process . argv ) )
16
+ . usage (
17
+ `
18
+ XDebug Bridge Server CLI
19
+
20
+ Usage: xdebug-bridge [options]
21
+ `
22
+ )
16
23
. option ( 'port' , {
17
24
alias : 'p' ,
18
25
type : 'number' ,
19
- description : 'Port to listen on' ,
26
+ description : 'Xdebug port to listen on' ,
20
27
default : 9003 ,
21
28
} )
22
29
. option ( 'host' , {
23
30
alias : 'h' ,
24
31
type : 'string' ,
25
- description : 'Host to bind to' ,
32
+ description : 'Xdebug host to bind to' ,
26
33
default : 'localhost' ,
27
34
} )
28
35
. option ( 'php-root' , {
29
36
type : 'string' ,
30
- description : 'Path to PHP root directory for file resolution ' ,
37
+ description : 'Path to PHP root directory' ,
31
38
default : './' ,
32
39
} )
33
- . option ( 'verbose' , {
34
- alias : 'v' ,
35
- type : 'boolean' ,
36
- description : 'Enable verbose logging' ,
37
- default : false ,
38
- } )
39
40
. help ( )
40
- . usage (
41
+ . epilog (
41
42
`
42
- XDebug Bridge Server CLI
43
-
44
- Usage: xdebug-bridge [options]
45
-
46
43
Examples:
47
44
xdebug-bridge # Start with default settings
48
- xdebug-bridge --port 9000 --verbose # Custom port with verbose logging
49
- xdebug-bridge --php-root /path/to/php/files # Specify PHP root directory
50
- `
45
+ xdebug-bridge --port 9000 --verbose # Custom port with verbose logging
46
+ xdebug-bridge --php-root /path/to/php/files # Specify PHP root directory
47
+ `
51
48
)
52
49
. parseSync ( ) as CLIArgs ;
53
50
}
You can’t perform that action at this time.
0 commit comments