hurl/docs/spec/options
2024-01-10 17:13:46 +01:00
..
hurl Update doc for 4.2.0 2024-01-10 17:13:46 +01:00
README.md Improve options generation README and picky directory refacto 2023-11-17 13:29:54 +01:00

Command Line Options

Hurl command line options are described with .option files. These files are used to generate:

  • Rust code to parse this options in hurl/hurlfmt packages
  • Man options

Format all option files

$ bin/spec/options/format.py docs/spec/options/**/*.option

This script insures that all .option files are well formatted.

Generate/Update clap command source file

$ bin/spec/options/generate_source.py docs/spec/options/hurl/*.option > packages/hurl/src/cli/options/commands.rs

This script generates Rust source file for parsing command line option.

Generate/Update man options

$ bin/spec/options/generate_man.py docs/spec/options/hurl/*.option

This script generates (part of) man file for hurl / hurlfmt.