Skip to content

Commit fb7c3ec

Browse files
committed
Add some short command line args
1 parent 6aaae45 commit fb7c3ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

splashsurf/src/reconstruction.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ pub struct ReconstructSubcommandArgs {
5050
pub end_index: Option<usize>,
5151

5252
/// The particle radius of the input data
53-
#[arg(help_heading = ARGS_BASIC, long)]
53+
#[arg(help_heading = ARGS_BASIC, short = 'r', long)]
5454
pub particle_radius: f64,
5555
/// The rest density of the fluid
5656
#[arg(help_heading = ARGS_BASIC, long, default_value = "1000.0")]
5757
pub rest_density: f64,
5858
/// The smoothing length radius used for the SPH kernel, the kernel compact support radius will be twice the smoothing length (in multiplies of the particle radius)
59-
#[arg(help_heading = ARGS_BASIC, long)]
59+
#[arg(help_heading = ARGS_BASIC, short = 'l', long)]
6060
pub smoothing_length: f64,
6161
/// The cube edge length used for marching cubes in multiplies of the particle radius, corresponds to the cell size of the implicit background grid
62-
#[arg(help_heading = ARGS_BASIC, long)]
62+
#[arg(help_heading = ARGS_BASIC, short = 'c', long)]
6363
pub cube_size: f64,
6464
/// The iso-surface threshold for the density, i.e. the normalized value of the reconstructed density level that indicates the fluid surface (in multiplies of the rest density)
65-
#[arg(help_heading = ARGS_BASIC, long, default_value = "0.6")]
65+
#[arg(help_heading = ARGS_BASIC, short = 't', long, default_value = "0.6")]
6666
pub surface_threshold: f64,
6767

6868
/// Whether to enable the use of double precision for all computations

0 commit comments

Comments
 (0)