Skip to content

Commit 2debfab

Browse files
committed
docs(help): tweak example
1 parent 1ee1c18 commit 2debfab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/args/cmd/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use clap::Parser;
44
pub struct Opt {
55
#[arg(verbatim_doc_comment)]
66
/// Login with your personal access token (PAT)
7-
/// Example: cnb user --login FOOBARBAZ
7+
/// Example: cnb user --login 'FOOBARBAZ'
88
/// PAT will be saved in ~/.cnbrc
99
/// You can create PAT in https://account.cnblogs.com/tokens
1010
#[arg(long)]

src/args/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct Args {
2525

2626
#[arg(verbatim_doc_comment)]
2727
/// Execute with specific PAT
28-
/// Example: cnb --with-pat FOOBARBAZ post --list
28+
/// Example: cnb --with-pat 'FOOBARBAZ' post --list
2929
/// Your PAT in ~/.cnbrc will be ignored in this execution if it exists
3030
/// Please login if you don't want to input PAT everytime, try 'cnb user --help' for more details
3131
#[arg(long)]

0 commit comments

Comments
 (0)