Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
Rust
Ğcli
Commits
f62c0557
Commit
f62c0557
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
doc(main): document cli options
parent
9e7c3544
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+2
-2
2 additions, 2 deletions
src/main.rs
with
2 additions
and
2 deletions
src/main.rs
+
2
−
2
View file @
f62c0557
...
@@ -45,7 +45,7 @@ pub struct CurrentUdQuery;
...
@@ -45,7 +45,7 @@ pub struct CurrentUdQuery;
#[derive(StructOpt)]
#[derive(StructOpt)]
#[structopt(name
=
"rust-gva-client"
,
about
=
"Client use GVA API of Duniter."
)]
#[structopt(name
=
"rust-gva-client"
,
about
=
"Client use GVA API of Duniter."
)]
struct
CliArgs
{
struct
CliArgs
{
/// GVA server url
(default `https://g1.librelois.fr/gva`)
/// GVA server url
#[structopt(short,
long,
default_value
=
DEFAULT_GVA_SERVER)]
#[structopt(short,
long,
default_value
=
DEFAULT_GVA_SERVER)]
server
:
String
,
server
:
String
,
#[structopt(subcommand)]
#[structopt(subcommand)]
...
@@ -54,7 +54,7 @@ struct CliArgs {
...
@@ -54,7 +54,7 @@ struct CliArgs {
#[derive(StructOpt)]
#[derive(StructOpt)]
enum
SubCommand
{
enum
SubCommand
{
// Get account balance
//
/
Get account balance
Balance
{
Balance
{
pubkey_or_script
:
String
,
pubkey_or_script
:
String
,
},
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment