Skip to content

Commit 7f196e6

Browse files
authored
Merge pull request #8 from nozwock/visible-alias
Use `visible_alias` instead of hardcoding them in docstrings
2 parents 6d69d1e + ebd8f45 commit 7f196e6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,47 @@ struct Cli {
2020

2121
#[derive(Subcommand)]
2222
enum Commands {
23-
/// Authenticate with LeetCode [ -a ]
24-
#[command(alias = "-a")]
23+
/// Authenticate with LeetCode
24+
#[command(visible_alias = "-a")]
2525
Auth,
26-
/// Executes code with testcases [ -r ]
27-
#[command(alias = "-rt")]
26+
/// Executes code with testcases
27+
#[command(visible_alias = "-rt")]
2828
RunCustom {
2929
/// Testcases to run
3030
testcases: String,
3131
/// File to execute
3232
filename: Option<String>,
3333
},
34-
#[command(alias = "-r")]
34+
#[command(visible_alias = "-r")]
3535
Run {
3636
/// File to execute with default testcases
3737
filename: Option<String>,
3838
},
39-
/// Submits code to LeetCode [ -s ]
40-
#[command(alias = "-fs")]
39+
/// Submits code to LeetCode
40+
#[command(visible_alias = "-fs")]
4141
FastSubmit {
4242
/// File to submit
4343
filename: Option<String>,
4444
},
45-
#[command(alias = "-s")]
45+
#[command(visible_alias = "-s")]
4646
Submit {
4747
/// File to submit
4848
filename: Option<String>,
4949
},
50-
/// Save a question as HTML [ -q ]
51-
#[command(alias = "-q")]
50+
/// Save a question as HTML
51+
#[command(visible_alias = "-q")]
5252
Question {
5353
/// Question name
5454
question_name: String,
5555
},
56-
/// Save today's daily challenge as HTML [ -d ]
57-
#[command(alias = "-d")]
56+
/// Save today's daily challenge as HTML
57+
#[command(visible_alias = "-d")]
5858
DailyChallenge,
5959
}
6060

6161
#[derive(Subcommand)]
6262
enum Execute {
63-
#[command(alias = "-t")]
63+
#[command(visible_alias = "-t")]
6464
Testcases {
6565
/// File to run
6666
filename: Option<String>,

0 commit comments

Comments
 (0)