Skip to content

Commit

Permalink
feat(cli): prettify help text
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Sep 8, 2023
1 parent 42fb63f commit 80b7378
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages_rs/nextclade-cli/src/cli/nextclade_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct NextcladeArgs {
pub command: NextcladeCommands,

/// Make output more quiet or more verbose
#[clap(flatten, next_help_heading = " Verbosity")]
#[clap(flatten, next_help_heading = "Verbosity")]
pub verbosity: Verbosity<WarnLevel>,
}

Expand Down Expand Up @@ -273,7 +273,7 @@ pub struct NextcladeRunInputArgs {
///
/// See: https://en.wikipedia.org/wiki/FASTA_format
#[clap(value_hint = ValueHint::FilePath)]
#[clap(display_order = 1)]
#[clap(display_order = 0)]
pub input_fastas: Vec<PathBuf>,

/// REMOVED. Use positional arguments instead.
Expand Down Expand Up @@ -608,16 +608,16 @@ pub struct NextcladeRunOtherParams {

#[derive(Parser, Debug, Clone)]
pub struct NextcladeRunArgs {
#[clap(flatten, next_help_heading = " Inputs")]
#[clap(flatten, next_help_heading = "Inputs")]
pub inputs: NextcladeRunInputArgs,

#[clap(flatten, next_help_heading = " Outputs")]
#[clap(flatten, next_help_heading = "Outputs")]
pub outputs: NextcladeRunOutputArgs,

#[clap(flatten)]
pub params: NextcladeInputParamsOptional,

#[clap(flatten, next_help_heading = " Other")]
#[clap(flatten, next_help_heading = "Other")]
pub other_params: NextcladeRunOtherParams,
}

Expand Down
6 changes: 3 additions & 3 deletions packages_rs/nextclade/src/run/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use serde::{Deserialize, Serialize};
#[derive(Parser, Debug, Default, Clone, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct NextcladeInputParamsOptional {
#[clap(flatten, next_help_heading = " General parameters")]
#[clap(flatten, next_help_heading = "General parameters")]
pub general: Option<NextcladeGeneralParamsOptional>,

#[clap(flatten, next_help_heading = " Phylogenetic tree parameters")]
#[clap(flatten, next_help_heading = "Phylogenetic tree parameters")]
pub tree_builder: Option<TreeBuilderParamsOptional>,

#[clap(flatten, next_help_heading = " Alignment parameters")]
#[clap(flatten, next_help_heading = "Alignment parameters")]
pub alignment: Option<AlignPairwiseParamsOptional>,
}

Expand Down

0 comments on commit 80b7378

Please sign in to comment.