@@ -239,9 +239,52 @@ stack-pr land -B HEAD~5 -H HEAD~2
239
239
` ` `
240
240
241
241
# # Command Line Options Reference
242
- The section is not added yet, contributions are welcome!
242
+
243
+ # ## Common Arguments
244
+
245
+ These arguments can be used with any subcommand:
246
+
247
+ - ` -R, --remote` : Remote name (default: " origin" )
248
+ - ` -B, --base` : Local base branch
249
+ - ` -H, --head` : Local head branch (default: " HEAD" )
250
+ - ` -T, --target` : Remote target branch (default: " main" )
251
+ - ` --hyperlinks/--no-hyperlinks` : Enable/disable hyperlink support (default: enabled)
252
+ - ` -V, --verbose` : Enable verbose output from Git subcommands (default: false)
253
+ - ` --branch-name-template` : Template for generated branch names (default: " $USERNAME /stack" )
254
+
255
+ # ## Subcommands
256
+
257
+ # ### submit (alias: export)
258
+
259
+ Submit a stack of PRs
260
+
261
+ Options:
262
+
263
+ - ` --keep-body` : Keep current PR body, only update cross-links (default: false)
264
+ - ` -d, --draft` : Submit PRs in draft mode (default: false)
265
+ - ` --draft-bitmask` : Bitmask for setting draft status per PR
266
+ - ` --reviewer` : List of reviewers for the PRs (default: from $STACK_PR_DEFAULT_REVIEWER or config)
267
+
268
+ # ### land
269
+
270
+ Land the current stack
271
+
272
+ Takes no additional arguments beyond common ones.
273
+
274
+ # ### abandon
275
+
276
+ Abandon the current stack
277
+
278
+ Takes no additional arguments beyond common ones.
279
+
280
+ # ### view
281
+
282
+ Inspect the current stack
283
+
284
+ Takes no additional arguments beyond common ones.
243
285
244
286
# ## Config files
287
+
245
288
Default values for command line options can be specified via a config file.
246
289
Path to the config file can be specified via ` STACKPR_CONFIG` envvar, and by
247
290
default it' s assumed to be `.stack-pr.cfg` in the current folder.
0 commit comments