You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Options)]
struct Arguments {
/// print help message
help: bool,
#[options(free,required)]
/// The file to extract data from
source: PathBuf,
#[options(free,required)]
/// The file to insert the data into
target: PathBuf,
}
When I call the program with '--help', I get the following usage:
Usage: clitool [OPTIONS]
Positional arguments:
source The file to extract data from
target The file to insert the data into
Optional arguments:
-h, --help print help message
In almost every other command line tool on my system, that first line of Usage would be something like: Usage: clitool [OPTIONS] SOURCE TARGET.
Right now I have to duplicate the code from parse_args_or_exit in order to add this.
It would be nice if gumdrop did this automatically, or at least allowed me to customize the usage line.
The text was updated successfully, but these errors were encountered:
Right now, I have the following struct:
When I call the program with '--help', I get the following usage:
In almost every other command line tool on my system, that first line of Usage would be something like:
Usage: clitool [OPTIONS] SOURCE TARGET
.Right now I have to duplicate the code from
parse_args_or_exit
in order to add this.It would be nice if gumdrop did this automatically, or at least allowed me to customize the usage line.
The text was updated successfully, but these errors were encountered: